https://www.typescriptlang.org/ko/
https://radlohead.gitbook.io/typescript-deep-dive/
설치
npm install typescript
- 파일명.ts
- npx tsc 파일명.ts
->js 파일로 변환 생성- node 파일명.js (실행)
react-typescript 설치
npx create-react-app my-app --template typescript
기존 react에 typescript추가 설치
npm install --save typescript @types/node @types/react @types/react-dom @types/jest
or