This commit is contained in:
Benjamin Toby 2025-01-05 09:03:03 +01:00
parent 9f77036b91
commit bf7fab22eb
4 changed files with 9 additions and 3 deletions

View File

@ -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) => {

View File

@ -1235,4 +1235,7 @@ export type HttpRequestParams = RequestOptions & {
};
urlEncodedFormBody?: boolean;
};
export type HttpRequestFunctionType = (param: HttpRequestParams) => Promise<{
[key: string]: any;
} | string | null>;
export {};

View File

@ -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>;

View File

@ -1,6 +1,6 @@
{
"name": "@moduletrace/datasquirel",
"version": "3.3.2",
"version": "3.3.3",
"description": "Cloud-based SQL data management tool",
"main": "index.js",
"bin": {