跳至主要内容

TypeScript Config

每次設定 config file 都覺得頭很痛(?

target: 編譯後的 JS 是什麼版本
module: Facilitates the utilization of a module manager in the compiled JavaScript code. CommonJS is supported and is a standard in Node.js
strict: 嚴格模式
esModuleInterop: Enables the compilation of ES6 modules to CommonJS modules
skipLibCheck: When set to true, bypasses the type checking of default library declaration files
forceConsistentCasingInFileNames: When set to true, enforces case-sensitive file naming