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
@@ -1,5 +1,5 @@
export = clientFetch;
declare function clientFetch(url: string, options?: import("../../package-shared/types").FetchApiOptions, contentType?: "json" | "text" | "html" | "blob" | "file"): Promise<any>;
declare function clientFetch(url: string, options?: import("../../package-shared/types").FetchApiOptions, csrf?: boolean): Promise<any>;
declare namespace clientFetch {
export { clientFetch as fetchApi };
}
+1 -1
View File
@@ -3,7 +3,7 @@
const _ = require("lodash");
/** @type {import("../../package-shared/types").FetchApiFn} */
async function clientFetch(url, options, contentType) {
async function clientFetch(url, options, csrf) {
let data;
let finalUrl = url;