1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-05 23:10:28 +00:00

chore: add ts file so tsc --noEmit works

This commit is contained in:
linonetwo 2024-09-04 18:56:29 +08:00
parent 602e5eacd5
commit 270aeba8ff
2 changed files with 25 additions and 0 deletions

1
core/globals.d.ts vendored Normal file
View File

@ -0,0 +1 @@
declare var $tw: any;

24
tsconfig.json Normal file
View File

@ -0,0 +1,24 @@
{
"compilerOptions": {
"paths": { // Add paths
"$:/core/*": ["./core/*"]
},
"noImplicitAny": false,
"strict": false,
"allowJs": true,
"allowSyntheticDefaultImports": true,
"checkJs": true,
"declaration": true,
"declarationDir": "types",
"declarationMap": true,
"emitDeclarationOnly": false,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "Node16",
"outDir": "silences wrong TS error, we don't compile, we only typecheck",
"rootDir": "core",
"skipLibCheck": true,
"target": "ESNext"
},
"include": ["./core/**/*.js", "**/*.d.ts"]
}