{ "compilerOptions": { /* Visit https://aka.ms/tsconfig to read more about this file */ "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ /* Modules */ "moduleResolution": "node", "module": "ES6", /* Specify what module code is generated. */ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ /* Type Checking */ "strict": true, /* Enable all strict type-checking options. */ "declaration": true, // 生成 `.d.ts` 文件 "outDir": "./dist", // 编译后生成的文件目录 "skipLibCheck": true, /* Skip type checking all .d.ts files. */ "types": [] } }