This commit is contained in:
Benjamin Toby
2025-04-18 12:05:10 +01:00
parent fb0bc4b753
commit 8d38f99bf1
180 changed files with 3 additions and 3974 deletions
-21
View File
@@ -1,21 +0,0 @@
type FetchApiOptions = {
method: "POST" | "GET" | "DELETE" | "PUT" | "PATCH" | "post" | "get" | "delete" | "put" | "patch";
body?: object | string;
headers?: FetchHeader;
};
type FetchHeader = HeadersInit & {
[key: string]: string | null;
};
export type FetchApiReturn = {
success: boolean;
payload: any;
msg?: string;
[key: string]: any;
};
/**
* # Fetch API
*/
export default function fetchApi(url: string, options?: FetchApiOptions, csrf?: boolean,
/** Key to use to grab local Storage csrf value. */
localStorageCSRFKey?: string): Promise<any>;
export {};