1. 설치방법 Node.js를 설치하면 npm도 같이 설치된다. $ npm install -g typescript 2. 사용방법 TypeScript의 기본 확장자는 .ts이다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 // person.ts class Person { private name: string; constructor(name: string) { this.name = name; } sayHello() { return "Hello, " + this.name; } } const person = new Person('Lee'); console.log(person.sayHello()); tsc 명령어 뒤에 트랜스파일링 대상 파일명을 지정한다. 이때 확장자 .ts는 생략할 수..