From 6d73cdb221c5f8c8aa1836c9aab48373657f6a07 Mon Sep 17 00:00:00 2001 From: Mitch Ryan Date: Tue, 25 Jun 2024 13:50:07 +0200 Subject: [PATCH] Replace ambiguous `headers` types with actual types --- src/interfaces.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/interfaces.ts b/src/interfaces.ts index 05c9fc10..c92b6839 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -179,7 +179,7 @@ export interface ISbStories< } perPage: number total: number - headers: any + headers: Headers } export interface ISbStory< @@ -191,7 +191,7 @@ export interface ISbStory< rels: ISbStoryData[] story: ISbStoryData } - headers: any + headers: Headers } export interface IMemoryType extends ISbResult { @@ -219,7 +219,7 @@ export interface ISbConfig { responseInterceptor?: ResponseFn fetch?: typeof fetch timeout?: number - headers?: any + headers?: Record region?: string maxRetries?: number https?: boolean @@ -298,7 +298,7 @@ export interface ISbContentMangmntAPI< export interface ISbManagmentApiResult { data: any - headers: any + headers: Headers } export interface ISbSchema {