🔧 Add tsconfig and fix some TS errors
This commit is contained in:
22
tsconfig.json
Normal file
22
tsconfig.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"target": "ES2017",
|
||||
"module": "CommonJS",
|
||||
"moduleResolution": "Node",
|
||||
|
||||
"allowUnreachableCode": false,
|
||||
"allowUnusedLabels": false,
|
||||
"alwaysStrict": true,
|
||||
"exactOptionalPropertyTypes": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
// "noImplicitAny": true, // enabled on strict mode
|
||||
"noImplicitReturns": true,
|
||||
// "noImplicitThis": true, // enabled on strict mode
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"strict": true
|
||||
},
|
||||
// "files": ["src/index.ts"],
|
||||
"include": ["src/**/*"]
|
||||
}
|
Reference in New Issue
Block a user