fix vidsrc

This commit is contained in:
Jorrin
2023-12-25 22:51:55 +01:00
parent 82034b91ed
commit 64050df350
8 changed files with 27 additions and 58 deletions

View File

@@ -34,7 +34,7 @@ export function makeFullFetcher(fetcher: Fetcher): UseableFetcher {
query: ops?.query ?? {},
baseUrl: ops?.baseUrl ?? '',
body: ops?.body,
returnRaw: ops?.returnRaw,
returnRaw: ops?.returnRaw ?? false,
});
};
}

View File

@@ -15,7 +15,7 @@ export type DefaultedFetcherOptions = {
headers: Record<string, string>;
query: Record<string, string>;
method: 'HEAD' | 'GET' | 'POST';
returnRaw?: boolean;
returnRaw: boolean;
};
export type Fetcher<T = any> = {