utils-lib-js 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/types.d.ts +1 -1
- package/dist/esm/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/common/types.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export declare type IRequestMethods = "GET" | "POST" | "DELETE" | "PUT" | "OPTIO
|
|
|
55
55
|
export declare type IRequestBody = IRequestParams<BodyInit>;
|
|
56
56
|
export declare type IRequestHeaders = IRequestParams<HeadersInit>;
|
|
57
57
|
export declare type IRequestBaseFn = (url: IUrl, opts: IRequestOptions) => Promise<any>;
|
|
58
|
-
export declare type IRequestFn = (url
|
|
58
|
+
export declare type IRequestFn = (url?: IUrl, params?: IObject<any>, body?: IRequestBody, opts?: IRequestOptions) => Promise<any>;
|
|
59
59
|
export declare type IRequestOptions = {
|
|
60
60
|
method?: IRequestMethods;
|
|
61
61
|
query?: IRequestParams<IObject<any>>;
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export declare type IRequestMethods = "GET" | "POST" | "DELETE" | "PUT" | "OPTIO
|
|
|
55
55
|
export declare type IRequestBody = IRequestParams<BodyInit>;
|
|
56
56
|
export declare type IRequestHeaders = IRequestParams<HeadersInit>;
|
|
57
57
|
export declare type IRequestBaseFn = (url: IUrl, opts: IRequestOptions) => Promise<any>;
|
|
58
|
-
export declare type IRequestFn = (url
|
|
58
|
+
export declare type IRequestFn = (url?: IUrl, params?: IObject<any>, body?: IRequestBody, opts?: IRequestOptions) => Promise<any>;
|
|
59
59
|
export declare type IRequestOptions = {
|
|
60
60
|
method?: IRequestMethods;
|
|
61
61
|
query?: IRequestParams<IObject<any>>;
|