@lazycatcloud/lzc-toolkit 0.0.109 → 0.0.111

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.
@@ -1,5 +1,5 @@
1
1
  import { Ref } from "vue";
2
- import { LoadingToastOptions } from "@/loading-toast";
2
+ import { LoadingToastOptions } from "../loading-toast";
3
3
  export interface UseDelayAsyncOptions extends LoadingToastOptions {
4
4
  /** 是否展示Loading */
5
5
  loading?: boolean;
@@ -18,9 +18,10 @@ export declare type UseDelayAsyncExpose = {
18
18
  /** 是否在执行中 */
19
19
  processing: Ref<boolean>;
20
20
  /** 执行函数 */
21
- handler: Function;
21
+ handler: ExecuteFunction;
22
22
  /** 清理Loading和内部定时器 */
23
23
  close: () => Promise<void>;
24
24
  };
25
- export declare function useDelayAsync(execute: Function, options?: UseDelayAsyncOptions): UseDelayAsyncExpose;
25
+ export declare type ExecuteFunction = (...args: any[]) => any;
26
+ export declare function useDelayAsync(execute: ExecuteFunction, options?: UseDelayAsyncOptions): UseDelayAsyncExpose;
26
27
  export default useDelayAsync;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.109",
3
+ "version": "0.0.111",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",