mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
basic structure for using modules in stores and convert to TS
This commit is contained in:
3
src/Bundle/ChillMainBundle/Resources/public/lib/api/apiMethods.d.ts
vendored
Normal file
3
src/Bundle/ChillMainBundle/Resources/public/lib/api/apiMethods.d.ts
vendored
Normal 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>;
|
Reference in New Issue
Block a user