-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
35 lines (35 loc) · 1.04 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"compilerOptions": {
"allowArbitraryExtensions":true,
"target": "es2017",
"lib": [
"es2018"
],
"moduleResolution": "node",
"resolveJsonModule": true,
"strictFunctionTypes": true,
"module": "CommonJS",
"allowImportingTsExtensions":true,
"esModuleInterop":true,
"noImplicitAny": true,
"alwaysStrict":true,
"noImplicitReturns":true,
"strictNullChecks" : true,
"noUncheckedIndexedAccess" : true,
"noErrorTruncation" : true,
"strictPropertyInitialization": true,
// Generate d.ts files
"declaration": true,
// This compiler run should
// only output d.ts files
"emitDeclarationOnly": true,
// Types should go into this directory.
// Removing this would place the .d.ts files
// next to the .js files
"outDir": "dist/types",
// go to js file when using IDE functions like
// "Go to Definition" in VSCode
"declarationMap": true,
},
"exclude": ["node_modules", "dist","tmp"]
}