This commit is contained in:
Benjamin Toby
2025-01-09 14:35:19 +01:00
parent 9f256832ee
commit 549d0abc02
5 changed files with 17 additions and 7 deletions
+2 -1
View File
@@ -1235,7 +1235,7 @@ export type HttpRequestParams<ReqObj extends {
query?: ReqObj;
urlEncodedFormBody?: boolean;
};
export type HttpRequestFunctionType<ReqObj extends {
export type HttpRequestFunction<ReqObj extends {
[key: string]: any;
} = {
[key: string]: any;
@@ -1253,5 +1253,6 @@ export type HttpFunctionResponse<ResObj extends {
data?: ResObj;
error?: string;
str?: string;
requestedPath?: string;
};
export {};
+2 -1
View File
@@ -1453,7 +1453,7 @@ export type HttpRequestParams<
urlEncodedFormBody?: boolean;
};
export type HttpRequestFunctionType<
export type HttpRequestFunction<
ReqObj extends { [key: string]: any } = { [key: string]: any },
ResObj extends { [key: string]: any } = { [key: string]: any }
> = (param: HttpRequestParams<ReqObj>) => Promise<HttpFunctionResponse<ResObj>>;
@@ -1465,4 +1465,5 @@ export type HttpFunctionResponse<
data?: ResObj;
error?: string;
str?: string;
requestedPath?: string;
};