type fix
This commit is contained in:
@@ -8,8 +8,7 @@ import _ from "lodash";
|
||||
|
||||
/**
|
||||
* # Generate a http Request
|
||||
* @param {import("../../types").HttpRequestParams} params *
|
||||
* @returns { Promise<Object<string, any> | string | null> }
|
||||
* @type {import("../../types").HttpRequestFunctionType}
|
||||
*/
|
||||
async function httpRequest(params) {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
Vendored
+3
@@ -1235,4 +1235,7 @@ export type HttpRequestParams = RequestOptions & {
|
||||
};
|
||||
urlEncodedFormBody?: boolean;
|
||||
};
|
||||
export type HttpRequestFunctionType = (param: HttpRequestParams) => Promise<{
|
||||
[key: string]: any;
|
||||
} | string | null>;
|
||||
export {};
|
||||
|
||||
@@ -1450,3 +1450,7 @@ export type HttpRequestParams = RequestOptions & {
|
||||
query?: { [key: string]: any };
|
||||
urlEncodedFormBody?: boolean;
|
||||
};
|
||||
|
||||
export type HttpRequestFunctionType = (
|
||||
param: HttpRequestParams
|
||||
) => Promise<{ [key: string]: any } | string | null>;
|
||||
|
||||
Reference in New Issue
Block a user