From abc7aab840c11f08eea6c8a44c1ac8d140862609 Mon Sep 17 00:00:00 2001 From: Mariusz Banach Date: Tue, 17 Feb 2026 23:20:37 +0100 Subject: [PATCH] MAESTRO: fix strict tsc compile --- .../SpecKit-web-header-analyzer-Phase-01-Project-Setup.md | 2 +- frontend/src/lib/api-client.ts | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Auto Run Docs/SpecKit-web-header-analyzer-Phase-01-Project-Setup.md b/Auto Run Docs/SpecKit-web-header-analyzer-Phase-01-Project-Setup.md index e44a8a3..eea489a 100644 --- a/Auto Run Docs/SpecKit-web-header-analyzer-Phase-01-Project-Setup.md +++ b/Auto Run Docs/SpecKit-web-header-analyzer-Phase-01-Project-Setup.md @@ -74,5 +74,5 @@ The hacker-themed dark colour palette (from spec FR-14): - [x] Frontend starts with `npm run dev` and renders a blank page - [x] Linting passes on both sides (`ruff check backend/`, `npx eslint src/`, `npx prettier --check src/`) - [x] Playwright test runner executes with `npx playwright test` (no tests yet, but config loads without error) -- [ ] TypeScript compilation succeeds with zero errors in strict mode +- [x] TypeScript compilation succeeds with zero errors in strict mode - [ ] Run `/speckit.analyze` to verify consistency diff --git a/frontend/src/lib/api-client.ts b/frontend/src/lib/api-client.ts index 4261fdb..7d98d76 100644 --- a/frontend/src/lib/api-client.ts +++ b/frontend/src/lib/api-client.ts @@ -39,7 +39,10 @@ export interface StreamRequestOptions { } export interface ApiClient { - request(path: string, init?: RequestInit & { body?: unknown }): Promise; + request( + path: string, + init?: Omit & { body?: unknown }, + ): Promise; get(path: string, init?: RequestInit): Promise; post(path: string, body: TBody, init?: RequestInit): Promise; stream(path: string, options: StreamRequestOptions): Promise; @@ -228,7 +231,7 @@ export const createApiClient = (options: ApiClientOptions = {}): ApiClient => { const request = async ( path: string, - init: RequestInit & { body?: unknown } = {}, + init: Omit & { body?: unknown } = {}, ): Promise => { const url = resolveUrl(baseUrl, path); const { body, headers, ...rest } = init;