Skip to content

Commit 7c53ea4

Browse files
committed
Fix declaration generation
Signed-off-by: paulober <44974737+paulober@users.noreply.github.com>
1 parent dfb457c commit 7c53ea4

File tree

2 files changed

+48
-46
lines changed

2 files changed

+48
-46
lines changed

tsconfig.json

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
{
2-
"compilerOptions": {
3-
"module": "Node16",
4-
"target": "ES2022",
5-
"lib": [
6-
"ES2023",
7-
],
8-
"sourceMap": true,
2+
"compilerOptions": {
3+
"module": "Node16",
4+
"target": "ES2022",
5+
"lib": [
6+
"ES2023",
7+
],
8+
"sourceMap": true,
99
"declaration": true,
10-
"rootDir": "src",
10+
"declarationDir": "./dist",
11+
"rootDir": "src",
1112
"outDir": "dist",
1213
"allowJs": false,
13-
"strict": true, /* enable all strict type-checking options */
14-
/* Additional Checks */
14+
"strict": true, /* enable all strict type-checking options */
15+
/* Additional Checks */
1516
"noImplicitAny": true,
16-
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
17-
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
18-
// "noUnusedParameters": true, /* Report errors on unused parameters. */
19-
"forceConsistentCasingInFileNames": true,
20-
"esModuleInterop": false,
21-
"moduleResolution": "node16"
22-
},
17+
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
18+
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
19+
// "noUnusedParameters": true, /* Report errors on unused parameters. */
20+
"forceConsistentCasingInFileNames": true,
21+
"esModuleInterop": false,
22+
"moduleResolution": "node16"
23+
},
2324
"exclude": [
2425
"node_modules",
2526
"out",
@@ -29,4 +30,4 @@
2930
"include": [
3031
"src/**/*.ts"
3132
]
32-
}
33+
}

tsconfig.tests.json

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
11
{
2-
"compilerOptions": {
3-
"module": "Node16",
4-
"target": "ES2022",
5-
"lib": [
6-
"ES2023"
7-
],
8-
"sourceMap": true,
9-
"declaration": true,
10-
"allowJs": false,
11-
"rootDir": "src",
12-
"outDir": "dist",
13-
"strict": true,
14-
"noImplicitAny": true,
15-
"noImplicitReturns": true,
16-
"noFallthroughCasesInSwitch": true,
17-
"forceConsistentCasingInFileNames": true,
18-
"esModuleInterop": true,
19-
"moduleResolution": "node16"
20-
},
21-
"exclude": [
22-
"node_modules",
23-
"./out",
24-
"./dist"
25-
],
26-
"include": [
27-
"src/**/*.ts"
28-
]
29-
}
2+
"compilerOptions": {
3+
"module": "Node16",
4+
"target": "ES2022",
5+
"lib": [
6+
"ES2023"
7+
],
8+
"sourceMap": true,
9+
"declaration": true,
10+
"declarationDir": "./dist/tests",
11+
"allowJs": false,
12+
"rootDir": "src",
13+
"outDir": "dist",
14+
"strict": true,
15+
"noImplicitAny": true,
16+
"noImplicitReturns": true,
17+
"noFallthroughCasesInSwitch": true,
18+
"forceConsistentCasingInFileNames": true,
19+
"esModuleInterop": true,
20+
"moduleResolution": "node16"
21+
},
22+
"exclude": [
23+
"node_modules",
24+
"./out",
25+
"./dist"
26+
],
27+
"include": [
28+
"src/**/*.ts"
29+
]
30+
}

0 commit comments

Comments
 (0)