mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 18:13:25 +00:00
12 lines
280 B
TypeScript
12 lines
280 B
TypeScript
export type FetcherOptions = {
|
|
baseUrl?: string;
|
|
headers?: Record<string, string>;
|
|
query?: Record<string, string>;
|
|
method?: 'GET' | 'POST';
|
|
body?: Record<string, any> | string | FormData;
|
|
};
|
|
|
|
export type Fetcher<T = any> = {
|
|
(url: string, ops?: FetcherOptions): T;
|
|
};
|