This commit is contained in:
Sacha Weatherstone committed 2021-10-17 13:45:40 +11:00
1 parent 1803b22d66
commit 1cffbab98d
25 files changed
+555 -262

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
export default async function fetcher<JSON>(
input: RequestInfo,
init?: RequestInit,
): Promise<JSON> {
const res = await fetch(input, init);
return res.json() as Promise<JSON>;
}