@varlet/axle 0.10.2 → 0.10.3

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/lib/api.d.cts CHANGED
@@ -10,7 +10,7 @@ type ApiUseOptions<V, R, P, D> = Partial<UseAxleOptions<V, R, P, D>> & {
10
10
  declare function createApi(axle: AxleInstance, useAxle: UseAxle): <R = any, P = Record<string, any>, D = Record<string, any>>(url: string, method: RunnerMethod) => {
11
11
  url: string;
12
12
  load: (params?: P | undefined, pathParams?: ApiPathParams, config?: AxleRequestConfig<D> | undefined) => Promise<R>;
13
- use: <V = any>(options?: ApiUseOptions<V, R, P, D>) => UseAxleInstance<V, R, P, D>;
13
+ use: <V = R>(options?: ApiUseOptions<V, R, P, D>) => UseAxleInstance<V, R, P, D>;
14
14
  patchUrl: (url: string, pathParams: ApiPathParams) => string;
15
15
  };
16
16
 
package/lib/api.d.ts CHANGED
@@ -10,7 +10,7 @@ type ApiUseOptions<V, R, P, D> = Partial<UseAxleOptions<V, R, P, D>> & {
10
10
  declare function createApi(axle: AxleInstance, useAxle: UseAxle): <R = any, P = Record<string, any>, D = Record<string, any>>(url: string, method: RunnerMethod) => {
11
11
  url: string;
12
12
  load: (params?: P | undefined, pathParams?: ApiPathParams, config?: AxleRequestConfig<D> | undefined) => Promise<R>;
13
- use: <V = any>(options?: ApiUseOptions<V, R, P, D>) => UseAxleInstance<V, R, P, D>;
13
+ use: <V = R>(options?: ApiUseOptions<V, R, P, D>) => UseAxleInstance<V, R, P, D>;
14
14
  patchUrl: (url: string, pathParams: ApiPathParams) => string;
15
15
  };
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/axle",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "description": "Progressive request tool based on axios",
5
5
  "keywords": [
6
6
  "axle",