npm install @types/node
tsconfig.json
tsc --init
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react"
},
"include": [
"src"
]
}
오늘의 기본 연습
728x90
'TypeScript' 카테고리의 다른 글
TypeScript Type (0) | 2021.12.27 |
---|---|
TypeScript/eslint 설정 (0) | 2021.08.30 |
타입 기본(Types) (0) | 2021.05.24 |
타입스크립트의 기능 (0) | 2021.05.24 |
TypeScript 기본 문법 연습 (0) | 2021.02.25 |