@vitrical/utils
Advanced tools
Comparing version 1.3.1 to 1.3.2
20
api.d.ts
@@ -5,5 +5,3 @@ import { AxiosError } from 'axios'; | ||
status: number; | ||
body: { | ||
[key: string]: any; | ||
} | string; | ||
body: any; | ||
headers: { | ||
@@ -17,5 +15,3 @@ [key: string]: any; | ||
status: number; | ||
body: string | { | ||
[key: string]: any; | ||
}; | ||
body: any; | ||
headers: { | ||
@@ -28,5 +24,3 @@ [key: string]: any; | ||
url: string; | ||
body?: { | ||
[key: string]: any; | ||
} | string; | ||
body?: any; | ||
query?: string | { | ||
@@ -40,8 +34,4 @@ [key: string]: any; | ||
export declare const request: ({ method, url, body, query, headers, }: CustomRequestOptions) => Promise<CustomRequestResponse>; | ||
export declare const makeMicroserviceRequest: (baseURL: string, key: string) => <T extends string | { | ||
[key: string]: any; | ||
}>(method: 'get' | 'post' | 'put' | 'delete', url: string, options?: { | ||
body?: string | { | ||
[key: string]: any; | ||
} | undefined; | ||
export declare const makeMicroserviceRequest: (baseURL: string, key: string) => <T extends unknown>(method: 'get' | 'post' | 'put' | 'delete', url: string, options?: { | ||
body?: any; | ||
query?: string | { | ||
@@ -48,0 +38,0 @@ [key: string]: any; |
{ | ||
"name": "@vitrical/utils", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Collection of useful functions and typings", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48605
828