1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-07 22:50:02 +00:00

feat: allow type in /generated to work

This commit is contained in:
linonetwo 2024-09-12 13:17:38 +08:00
parent 8f0d37e24c
commit 24279cca6a
2 changed files with 24 additions and 4 deletions

View File

@ -2,14 +2,15 @@
"compilerOptions": {
"paths": {
// Allow `import('$:/core/modules/...')` instead of `import('../../core/modules/...')`. Only works inside this project.
"$:/core/*": ["./core/*"]
"$:/core/*": ["core/*"]
},
"baseUrl": ".",
"rootDir": ".",
"noImplicitAny": false,
"strict": false,
"allowJs": true,
"allowSyntheticDefaultImports": true,
"checkJs": true,
"allowSyntheticDefaultImports": true,
"declaration": true,
"declarationDir": "types/generated",
"declarationMap": true,
@ -17,7 +18,6 @@
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "Node16",
"outDir": "types/generated",
"rootDir": ".",
"skipLibCheck": true,
"target": "ESNext"
},

20
types/tsconfig.json Normal file
View File

@ -0,0 +1,20 @@
{
"compilerOptions": {
"paths": {
// Allow `import('$:/core/modules/...')` instead of `import('../../core/modules/...')`. Only works inside this project.
"$:/core/*": ["core/*"]
},
"baseUrl": "./generated",
"rootDir": "./generated",
"noEmit": true,
"noImplicitAny": false,
"allowSyntheticDefaultImports": true,
"declaration": true,
"declarationDir": "types/generated",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "Node16",
"skipLibCheck": true,
"target": "ESNext"
},
"include": ["./generated/**/*.d.ts"]
}