Migrated ImageDownloader from axios to fetch

This commit is contained in:
Alejandro Celaya
2022-11-15 11:41:05 +01:00
parent a88ebc26a9
commit 34aa156d5f
9 changed files with 21 additions and 31 deletions

View File

@@ -1,3 +1,5 @@
export type MediaMatcher = (query: string) => MediaQueryList;
export type Fetch = <T>(url: string, options?: RequestInit) => Promise<T>;
export type Fetch = typeof window.fetch;
export type JsonFetch = <T>(url: string, options?: RequestInit) => Promise<T>;