This commit is contained in:
Benjamin Toby
2024-12-14 16:23:16 +01:00
parent 901492f5e2
commit 0880526f44
7 changed files with 21 additions and 8 deletions
+1 -1
View File
@@ -885,7 +885,7 @@ export type CheckApiCredentialsFnParam = {
table?: string;
user_id?: string | number;
};
export type FetchApiFn = (url: string, options?: FetchApiOptions, contentType?: "json" | "text" | "html" | "blob" | "file") => Promise<any>;
export type FetchApiFn = (url: string, options?: FetchApiOptions, csrf?: boolean) => Promise<any>;
export type FetchApiOptions = RequestInit & {
method: "POST" | "GET" | "DELETE" | "PUT" | "PATCH" | "post" | "get" | "delete" | "put" | "patch";
body?: object | string;
+1 -1
View File
@@ -1049,7 +1049,7 @@ export type CheckApiCredentialsFnParam = {
export type FetchApiFn = (
url: string,
options?: FetchApiOptions,
contentType?: "json" | "text" | "html" | "blob" | "file"
csrf?: boolean
) => Promise<any>;
export type FetchApiOptions = RequestInit & {