@vtj/utils 0.8.96 → 0.8.98

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/utils",
3
3
  "private": false,
4
- "version": "0.8.96",
4
+ "version": "0.8.98",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "@vtj/base": "~0.8.10"
@@ -123,8 +123,8 @@ export interface IApiMap {
123
123
  }
124
124
  export declare function createApis(map: IApiMap): Record<string, (data?: unknown, opts?: IRequestConfig) => Promise<unknown>>;
125
125
  export declare function useApi<R = any>(api: Promise<R>, transform?: (res: any) => R): {
126
- data: Ref< UnwrapRef<R> | null>;
127
- error: Ref<any>;
128
- loading: Ref<boolean>;
126
+ data: Ref< UnwrapRef<R> | null, R | UnwrapRef<R> | null>;
127
+ error: Ref<any, any>;
128
+ loading: Ref<boolean, boolean>;
129
129
  };
130
130
  export { axios, LOCAL_REQUEST_ID, type AxiosRequestConfig, type AxiosResponse, type RawAxiosRequestHeaders };
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/utils
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.8.96
5
+ * @version 0.8.98
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.8.96";
8
+ export declare const version = "0.8.98";