mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 18:13:25 +00:00
Start building a provider scrape system
This commit is contained in:
11
src/utils/fetcher.ts
Normal file
11
src/utils/fetcher.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
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;
|
||||
};
|
Reference in New Issue
Block a user