@yeepay/client-utils 3.0.4 → 3.0.5
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/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ interface ServiceFactoryCallbacks {
|
|
|
19
19
|
responseInterceptor?: (response: AxiosResponse<any>) => AxiosResponse<any>;
|
|
20
20
|
}
|
|
21
21
|
type ServiceFactoryCallbacksCompatible = [ServiceFactoryCallbacks['successCallback']?, ServiceFactoryCallbacks['failCallback']?, ServiceFactoryCallbacks['unauthorizedCallback']?, ServiceFactoryCallbacks['forbiddenCallback']?, ServiceFactoryCallbacks['notfoundCallback']?, ServiceFactoryCallbacks['requestInterceptor']?, ServiceFactoryCallbacks['responseInterceptor']?];
|
|
22
|
-
declare function verifySuccessCode<T extends string | number>(code: T, customCode
|
|
22
|
+
declare function verifySuccessCode<T extends string | number>(code: T, customCode?: T): boolean;
|
|
23
23
|
declare function serviceFactory(options: ServiceFactoryOptions, callbacks: ServiceFactoryCallbacks): AxiosInstance;
|
|
24
24
|
declare function serviceFactory(options: ServiceFactoryOptions, ...callbacks: ServiceFactoryCallbacksCompatible): AxiosInstance;
|
|
25
25
|
//#endregion
|
package/package.json
CHANGED