1
0

🔧 Add tsconfig and fix some TS errors

This commit is contained in:
2022-01-06 18:21:16 +01:00
parent 931cc57b1b
commit 54bae2f986
3 changed files with 34 additions and 18 deletions

22
tsconfig.json Normal file
View 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/**/*"]
}