From 40c8ed4643f1ad4360983441cd2cf560501554b7 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Tue, 15 Jul 2025 21:05:44 +0200 Subject: [PATCH] make some adjustments to make linter and types happy --- src/gen/api/outline/runtime.ts | 15 ++++++++++++--- src/main.ts | 4 +--- tsconfig.json | 4 ++-- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/gen/api/outline/runtime.ts b/src/gen/api/outline/runtime.ts index c92a12c..7a5f132 100644 --- a/src/gen/api/outline/runtime.ts +++ b/src/gen/api/outline/runtime.ts @@ -307,21 +307,30 @@ function isFormData(value: any): value is FormData { export class ResponseError extends Error { override name: "ResponseError" = "ResponseError"; - constructor(public response: Response, msg?: string) { + constructor( + public response: Response, + msg?: string + ) { super(msg); } } export class FetchError extends Error { override name: "FetchError" = "FetchError"; - constructor(public cause: Error, msg?: string) { + constructor( + public cause: Error, + msg?: string + ) { super(msg); } } export class RequiredError extends Error { override name: "RequiredError" = "RequiredError"; - constructor(public field: string, msg?: string) { + constructor( + public field: string, + msg?: string + ) { super(msg); } } diff --git a/src/main.ts b/src/main.ts index 0a444bc..7620735 100644 --- a/src/main.ts +++ b/src/main.ts @@ -71,9 +71,7 @@ async function main() { delete transports[transport.sessionId]; } }; - const outlineMcpServer = outlineMcpFactory( - logger.child({ sessionId: transport.sessionId }) - ); + const outlineMcpServer = outlineMcpFactory(logger.child({ sessionId: transport.sessionId })); await outlineMcpServer.connect(transport); } else { diff --git a/tsconfig.json b/tsconfig.json index bfa0fea..89ff0e3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { // Environment setup & latest features - "lib": ["ESNext"], + "lib": ["ESNext", "DOM"], "target": "ESNext", "module": "Preserve", "moduleDetection": "force", @@ -19,7 +19,7 @@ "skipLibCheck": true, "noFallthroughCasesInSwitch": true, "noUncheckedIndexedAccess": true, - "noImplicitOverride": true, + "noImplicitOverride": false, // Some stricter flags (disabled by default) "noUnusedLocals": false,