TypeScript - 기초2

Seung min, Yoo·2021년 5월 3일
0
post-thumbnail

TypeScript

Dependency
1. 글로벌설치

$ npm i typescript -g

2.로컬설치

$ npm i typescript --save-dev

Setup

$ tsc --init

Compiling
#for local tsc
npx tsc
#or
tsc
#만약 npm install -D ts-node로 설치한 경우 바로 결과를 볼 수 있다.
ts-node '프로젝트명'.ts

참고 hopsprings2.log

profile
이제 막 개발을 시작한 프로그래밍 입문자

0개의 댓글