From d331271b582c1d19cc099591e6cbb3dc5a485a75 Mon Sep 17 00:00:00 2001 From: Kuba Suder Date: Thu, 27 Nov 2025 21:49:03 +0200 Subject: [PATCH] renamed jsconfig to tsconfig --- src/types.d.ts | 4 ++-- jsconfig.json => tsconfig.json | 3 ++- typecheck.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) rename jsconfig.json => tsconfig.json (76%) 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; -- 2.51.2