basic structure for using modules in stores and convert to TS

This commit is contained in:
2022-06-20 09:49:53 +02:00
parent 6c4f116e85
commit 8c99fc0089
16 changed files with 457 additions and 93 deletions

View File

@@ -0,0 +1,3 @@
export function fetchResults<T>(uri: string, params: {item_per_page?: number}): Promise<T[]>;
export function makeFetch<T, B>(method: "GET"|"POST"|"PATCH"|"DELETE", url: string, body: B, options: {[key: string]: string}): Promise<T>;