WIP
This commit is contained in:
1 parent
1803b22d66
commit
1cffbab98d
25 files changed
+555
-262
No files matched your search
@@ -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>;
|
||||
}
|
||||
Reference in new issue
Block a user