Skip to content

Commit

Permalink
Fix declaration generation
Browse files Browse the repository at this point in the history
Signed-off-by: paulober <[email protected]>
  • Loading branch information
paulober committed Nov 17, 2024
1 parent dfb457c commit 7c53ea4
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 46 deletions.
37 changes: 19 additions & 18 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
{
"compilerOptions": {
"module": "Node16",
"target": "ES2022",
"lib": [
"ES2023",
],
"sourceMap": true,
"compilerOptions": {
"module": "Node16",
"target": "ES2022",
"lib": [
"ES2023",
],
"sourceMap": true,
"declaration": true,
"rootDir": "src",
"declarationDir": "./dist",
"rootDir": "src",
"outDir": "dist",
"allowJs": false,
"strict": true, /* enable all strict type-checking options */
/* Additional Checks */
"strict": true, /* enable all strict type-checking options */
/* Additional Checks */
"noImplicitAny": true,
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
"forceConsistentCasingInFileNames": true,
"esModuleInterop": false,
"moduleResolution": "node16"
},
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
"forceConsistentCasingInFileNames": true,
"esModuleInterop": false,
"moduleResolution": "node16"
},
"exclude": [
"node_modules",
"out",
Expand All @@ -29,4 +30,4 @@
"include": [
"src/**/*.ts"
]
}
}
57 changes: 29 additions & 28 deletions tsconfig.tests.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
{
"compilerOptions": {
"module": "Node16",
"target": "ES2022",
"lib": [
"ES2023"
],
"sourceMap": true,
"declaration": true,
"allowJs": false,
"rootDir": "src",
"outDir": "dist",
"strict": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true,
"moduleResolution": "node16"
},
"exclude": [
"node_modules",
"./out",
"./dist"
],
"include": [
"src/**/*.ts"
]
}
"compilerOptions": {
"module": "Node16",
"target": "ES2022",
"lib": [
"ES2023"
],
"sourceMap": true,
"declaration": true,
"declarationDir": "./dist/tests",
"allowJs": false,
"rootDir": "src",
"outDir": "dist",
"strict": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true,
"moduleResolution": "node16"
},
"exclude": [
"node_modules",
"./out",
"./dist"
],
"include": [
"src/**/*.ts"
]
}

0 comments on commit 7c53ea4

Please sign in to comment.