Merge branch 'dev' into fix-showbox-useragent

This commit is contained in:
William Oldham
2024-01-06 14:40:59 +00:00
committed by GitHub
16 changed files with 379 additions and 22 deletions

View File

@@ -4,7 +4,7 @@ export type FetcherOptions = {
baseUrl?: string;
headers?: Record<string, string>;
query?: Record<string, string>;
method?: 'GET' | 'POST';
method?: 'HEAD' | 'GET' | 'POST';
readHeaders?: string[];
body?: Record<string, any> | string | FormData | URLSearchParams;
};
@@ -17,7 +17,7 @@ export type DefaultedFetcherOptions = {
headers: Record<string, string>;
query: Record<string, string>;
readHeaders: string[];
method: 'GET' | 'POST';
method: 'HEAD' | 'GET' | 'POST';
};
export type FetcherResponse<T = any> = {