From 636780870d3117b1d644ef169087917b6ec2caf9 Mon Sep 17 00:00:00 2001 From: soufiane Date: Tue, 18 Nov 2025 02:01:53 +0100 Subject: [PATCH] fix: change headers type from HeadersInit to Record MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace HeadersInit type with Record for headers object to allow index access with bracket notation. This resolves the TypeScript error "Property 'Authorization' does not exist on type 'HeadersInit'". 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- services/api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/api.ts b/services/api.ts index dfb4f2a..99d65ce 100644 --- a/services/api.ts +++ b/services/api.ts @@ -29,9 +29,9 @@ async function fetchWithAuth( tokenPreview: token ? `${token.substring(0, 20)}...` : 'Aucun', }); - const headers: HeadersInit = { + const headers: Record = { 'Content-Type': 'application/json', - ...options.headers, + ...options.headers as Record, }; if (token) {