mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 18:13:25 +00:00
Added first source and embed
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import * as FormData from 'form-data';
|
||||
|
||||
export type FetcherOptions = {
|
||||
baseUrl?: string;
|
||||
headers?: Record<string, string>;
|
||||
@@ -15,10 +17,10 @@ export type DefaultedFetcherOptions = {
|
||||
};
|
||||
|
||||
export type Fetcher<T = any> = {
|
||||
(url: string, ops: DefaultedFetcherOptions): T;
|
||||
(url: string, ops: DefaultedFetcherOptions): Promise<T>;
|
||||
};
|
||||
|
||||
// this feature has some quality of life features
|
||||
export type UseableFetcher<T = any> = {
|
||||
(url: string, ops?: FetcherOptions): T;
|
||||
(url: string, ops?: FetcherOptions): Promise<T>;
|
||||
};
|
||||
|
Reference in New Issue
Block a user