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"] +}