@aplus-frontend/ui
Version:
10 lines (9 loc) • 534 B
TypeScript
import { NamePath } from '@aplus-frontend/antdv/es/form/interface';
import { ApFormExpose } from '../interface';
import { Ref } from 'vue';
type ApFormIns<T> = ApFormExpose<T>;
type WatchOptions<ValueType> = {
initialValue: ValueType;
};
export declare function useWatch<ValueType = any, StoreType = any>(name: NamePath | Ref<NamePath>, formOrOptions?: Ref<ApFormIns<StoreType> | undefined> | WatchOptions<ValueType>, options?: WatchOptions<ValueType>): Ref<ValueType | undefined, ValueType | undefined>;
export default useWatch;