Updates
This commit is contained in:
Vendored
+2
-1
@@ -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 {};
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user