mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 18:13:25 +00:00
fix compile errors for fetch-likes
This commit is contained in:
@@ -10,7 +10,7 @@ export type FetchOps = {
|
||||
};
|
||||
|
||||
export type FetchHeaders = {
|
||||
get(key: string): string | undefined;
|
||||
get(key: string): string | null;
|
||||
};
|
||||
|
||||
export type FetchReply = {
|
||||
@@ -19,4 +19,4 @@ export type FetchReply = {
|
||||
headers: FetchHeaders;
|
||||
};
|
||||
|
||||
export type FetchType = (url: string, ops?: FetchOps) => Promise<FetchReply>;
|
||||
export type FetchLike = (url: string, ops?: FetchOps | undefined) => Promise<FetchReply>;
|
||||
|
Reference in New Issue
Block a user