diff --git a/src/types.d.ts b/src/types.d.ts index 96a1802..b838b21 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -1,7 +1,7 @@ interface Window { dateLocale: string | undefined; - root: import("./models/posts.js").AnyPost; - subtreeRoot: import("./models/posts.js").AnyPost; + root: AnyPost; + subtreeRoot: AnyPost; init: () => void; BlueskyAPI: { new(host: string | null, useAuthentication: boolean): import("./api/api.js").BlueskyAPI }; } diff --git a/jsconfig.json b/tsconfig.json similarity index 76% rename from jsconfig.json rename to tsconfig.json index b511e28..7e2b0e8 100644 --- a/jsconfig.json +++ b/tsconfig.json @@ -3,11 +3,12 @@ "target": "es2022", "module": "nodenext", "moduleResolution": "nodenext", + "noEmit": true, "checkJs": true, "strict": true, "noImplicitAny": false, "exactOptionalPropertyTypes": true, "useUnknownInCatchVariables": false }, - "include": ["src/**/*.js", "src/**/*.ts", "lib/**/*.d.ts", "test/**/*.js"] + "include": ["src/**/*.js", "src/**/*.ts", "lib/**/*.d.ts"] } diff --git a/typecheck.js b/typecheck.js index 1f01133..3d794e8 100644 --- a/typecheck.js +++ b/typecheck.js @@ -2,7 +2,7 @@ import ts from 'typescript'; import { readFileSync } from "node:fs"; import { dirname, resolve } from "node:path"; -const configPath = 'jsconfig.json'; +const configPath = 'tsconfig.json'; let incrementalProgram;