TypeScript 설치
TypeScript를 사용하기 위해서는 먼저 node.js와 IDE가 설치되어 있어야 하는데
기본적으로 vsc (Visual Studio Code)를 많이 사용한다.
Node.js
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
nodejs.org
node.js는 위쪽에서 받고
Visual Studio Code - Code Editing. Redefined
Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.
code.visualstudio.com
vscode는 위사이트에 받으면 된다.

이후에 터미널을 열어준다.
npm install -g typescript
TypeScript를 전역으로 설치한다.
tsc --v
TypeScript version 확인
let hello = 'test1'; var hello2 = 'test2';
TypeScript 코드 작성
tsc hello.ts
TypeScript 컴파일
'TypeScript' 카테고리의 다른 글
Enum (열거형 상수) (0) | 2021.05.04 |
---|---|
Function (함수) (0) | 2021.05.01 |
Interface (인터페이스) (0) | 2021.04.30 |
TypeScript Type Annotation2 (변수 타입 선언) (0) | 2021.04.29 |
TypeScript Type Annotation (변수 타입 선언) (0) | 2021.04.28 |
댓글
이 글 공유하기
다른 글
-
Function (함수)
Function (함수)
2021.05.01 -
Interface (인터페이스)
Interface (인터페이스)
2021.04.30 -
TypeScript Type Annotation2 (변수 타입 선언)
TypeScript Type Annotation2 (변수 타입 선언)
2021.04.29 -
TypeScript Type Annotation (변수 타입 선언)
TypeScript Type Annotation (변수 타입 선언)
2021.04.28
댓글을 사용할 수 없습니다.