Skip to content

Commit 19be2ff

Browse files
committed
fix typescript errors
1 parent 0c6e77a commit 19be2ff

File tree

3 files changed

+62
-39
lines changed

3 files changed

+62
-39
lines changed

__tests__/tsconfig.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"types": [
5+
"vitest/globals"
6+
]
7+
},
8+
"include": [
9+
"."
10+
]
11+
}

pnpm-lock.yaml

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

Lines changed: 37 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,38 @@
11
{
2-
"compilerOptions": {
3-
"outDir": "dist",
4-
"module": "esnext",
5-
"target": "ESNext",
6-
"lib": ["es6", "dom", "es2016", "es2017"],
7-
"sourceMap": true,
8-
"allowJs": false,
9-
"jsx": "react",
10-
"declaration": true,
11-
"moduleResolution": "node",
12-
"forceConsistentCasingInFileNames": true,
13-
"noImplicitReturns": true,
14-
"noImplicitThis": true,
15-
"noImplicitAny": true,
16-
"strictNullChecks": true,
17-
"noUnusedLocals": true,
18-
"noUnusedParameters": true,
19-
"allowSyntheticDefaultImports": true,
20-
"esModuleInterop": true,
21-
"noEmit": true,
22-
"types": ["vitest/globals"]
23-
},
24-
"include": ["src", "__tests__"],
25-
"exclude": ["node_modules", "dist", "example", "rollup.config.js", "pre-planning"]
26-
}
2+
"compilerOptions": {
3+
"outDir": "dist",
4+
"module": "esnext",
5+
"target": "ESNext",
6+
"lib": [
7+
"es6",
8+
"dom",
9+
"es2016",
10+
"es2017"
11+
],
12+
"sourceMap": true,
13+
"allowJs": false,
14+
"jsx": "react",
15+
"declaration": true,
16+
"moduleResolution": "node",
17+
"forceConsistentCasingInFileNames": true,
18+
"noImplicitReturns": true,
19+
"noImplicitThis": true,
20+
"noImplicitAny": true,
21+
"strictNullChecks": true,
22+
"noUnusedLocals": true,
23+
"noUnusedParameters": true,
24+
"allowSyntheticDefaultImports": true,
25+
"esModuleInterop": true,
26+
"noEmit": true
27+
},
28+
"include": [
29+
"src"
30+
],
31+
"exclude": [
32+
"node_modules",
33+
"dist",
34+
"example",
35+
"rollup.config.js",
36+
"pre-planning"
37+
]
38+
}

0 commit comments

Comments
 (0)