fix compile errors for fetch-likes

This commit is contained in:
mrjvs
2023-09-27 19:50:55 +02:00
parent 2a2a3adc24
commit f53a0c52a0
4 changed files with 7 additions and 7 deletions

View File

@@ -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>;