type fix
This commit is contained in:
parent
9f77036b91
commit
bf7fab22eb
@ -8,8 +8,7 @@ import _ from "lodash";
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* # Generate a http Request
|
* # Generate a http Request
|
||||||
* @param {import("../../types").HttpRequestParams} params *
|
* @type {import("../../types").HttpRequestFunctionType}
|
||||||
* @returns { Promise<Object<string, any> | string | null> }
|
|
||||||
*/
|
*/
|
||||||
async function httpRequest(params) {
|
async function httpRequest(params) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
3
package-shared/types/index.d.ts
vendored
3
package-shared/types/index.d.ts
vendored
@ -1235,4 +1235,7 @@ export type HttpRequestParams = RequestOptions & {
|
|||||||
};
|
};
|
||||||
urlEncodedFormBody?: boolean;
|
urlEncodedFormBody?: boolean;
|
||||||
};
|
};
|
||||||
|
export type HttpRequestFunctionType = (param: HttpRequestParams) => Promise<{
|
||||||
|
[key: string]: any;
|
||||||
|
} | string | null>;
|
||||||
export {};
|
export {};
|
||||||
|
@ -1450,3 +1450,7 @@ export type HttpRequestParams = RequestOptions & {
|
|||||||
query?: { [key: string]: any };
|
query?: { [key: string]: any };
|
||||||
urlEncodedFormBody?: boolean;
|
urlEncodedFormBody?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type HttpRequestFunctionType = (
|
||||||
|
param: HttpRequestParams
|
||||||
|
) => Promise<{ [key: string]: any } | string | null>;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@moduletrace/datasquirel",
|
"name": "@moduletrace/datasquirel",
|
||||||
"version": "3.3.2",
|
"version": "3.3.3",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
Loading…
Reference in New Issue
Block a user