sm-utility 2.3.0 → 2.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sm-utility",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "reusable utility codes for sm projects",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",
@@ -1,4 +1,5 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
+ import { createApi } from './axios-custom-client';
2
3
  declare module 'axios' {
3
4
  interface AxiosRequestConfig {
4
5
  meta?: Record<string, any>;
@@ -7,3 +8,4 @@ declare module 'axios' {
7
8
  }
8
9
  }
9
10
  export declare type CustomClientCreateApiParams = Omit<AxiosRequestConfig, 'meta'>;
11
+ export declare type AxiosInstance = ReturnType<typeof createApi>;