Files
video-gen/video-gen-admin/node_modules/@rc-component/form/lib/hooks/useNotifyWatch.d.ts
T
2026-05-25 17:08:18 +08:00

17 lines
533 B
TypeScript

import type { InternalNamePath, WatchCallBack } from '../interface';
import type { FormStore } from './useForm';
/**
* Call action with delay in macro task.
*/
export declare const macroTask: (fn: VoidFunction) => void;
export default class WatcherCenter {
namePathList: InternalNamePath[];
taskId: number;
watcherList: Set<WatchCallBack>;
form: FormStore;
constructor(form: FormStore);
register(callback: WatchCallBack): VoidFunction;
notify(namePath: InternalNamePath[]): void;
private doBatch;
}