TypeScript의 기본 사용법을 학습하기 위한 Repository 입니다.
- hello.ts : Typescript 컴파일러 사용하기
- basic.ts : 변수 선언 방법 및 메서드 사용하기
- todoItem.ts : 클래스, 메서드 선언 및 사용하기
Node.js와npm설치
brew install node- TypeScript 컴파일러 설치
npm install -g typescript- 터미널에서 해당 프로젝트 경로로 이동
tsc명령어를 통해.ts파일 컴파일
tsc hello.ts
tsc basic.ts
tsc todoItem.ts- 컴파일된
.js파일을Node.js로 실행
npm hello.js
npm basic.js
npm todoItem.js