From 270aeba8ff12653ab32583ebe2ef105c0848592a Mon Sep 17 00:00:00 2001 From: linonetwo Date: Wed, 4 Sep 2024 18:56:29 +0800 Subject: [PATCH] chore: add ts file so tsc --noEmit works --- core/globals.d.ts | 1 + tsconfig.json | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 core/globals.d.ts create mode 100644 tsconfig.json diff --git a/core/globals.d.ts b/core/globals.d.ts new file mode 100644 index 000000000..1c5abfbb1 --- /dev/null +++ b/core/globals.d.ts @@ -0,0 +1 @@ +declare var $tw: any; diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 000000000..852b30491 --- /dev/null +++ b/tsconfig.json @@ -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"] +}