danielbonifacio-sdk
Advanced tools
Comparing version 2.8.0 to 2.8.1
@@ -5,5 +5,5 @@ import { AxiosRequestConfig, AxiosResponse } from "axios"; | ||
protected static getData: typeof getData; | ||
static setRequestInterceptors(onFulfilled: (request: AxiosRequestConfig) => AxiosRequestConfig | Promise<AxiosRequestConfig>, onRejected: (error: any) => any): void; | ||
static setRequestInterceptors(onFulfilled: (request: AxiosRequestConfig) => AxiosRequestConfig | Promise<AxiosRequestConfig>, onRejected?: (error: any) => any): void; | ||
} | ||
declare function getData<T>(res: AxiosResponse<T>): T; | ||
export default Service; |
{ | ||
"name": "danielbonifacio-sdk", | ||
"version": "2.8.0", | ||
"version": "2.8.1", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -15,3 +15,3 @@ import axios, { AxiosRequestConfig, AxiosResponse } from "axios"; | ||
) => AxiosRequestConfig | Promise<AxiosRequestConfig>, | ||
onRejected: (error: any) => any | ||
onRejected?: (error: any) => any | ||
) { | ||
@@ -18,0 +18,0 @@ Http.interceptors.request.use(onFulfilled, onRejected); |
177520