@meleon/uni-ui
Version:
A uniapp components library written in vue3 and typescript
14 lines (13 loc) • 680 B
TypeScript
export * from './abortablePromise';
export * from './common';
export * from './getValueByPath';
export * from './pad';
type AnyFunction = (...args: any[]) => any;
export declare const useCompose: (...props: Array<AnyFunction>) => AnyFunction;
interface DebounceOptions {
delay: number;
}
export declare const useDebounce: (fn: AnyFunction, options?: DebounceOptions) => <T>(...args: T[]) => void;
export declare const useThrottle: (fn: AnyFunction, options?: DebounceOptions) => <T>(...args: T[]) => void;
export declare const useDeepClone: <T>(target: T) => T;
export declare function useGet<T>(source: Record<string, any>, path: string, defaultValue?: any): T;