tdesign-react
Version:
TDesign Component for React
20 lines (19 loc) • 653 B
TypeScript
import type { FormInstanceFunctions, NamePath } from '../type';
export type Store = Record<string, any>;
export type WatchCallBack = (values: Store, namePathList: NamePath) => void;
export interface InternalHooks {
notifyWatch: (name: NamePath) => void;
registerWatch: (callback: WatchCallBack) => () => void;
getPrevStore: () => Store;
setPrevStore: (store: Store) => void;
flashQueue: () => void;
setForm: (form: any) => void;
}
/**
* @internal
*/
export interface InternalFormInstance extends FormInstanceFunctions {
_init?: boolean;
store?: Store;
getInternalHooks?: (secret: string) => InternalHooks | null;
}