diff --git a/docs/src/routes/docs/create-form/trigger.tsx b/docs/src/routes/docs/create-form/trigger.tsx index 78012c1..c31c15f 100644 --- a/docs/src/routes/docs/create-form/trigger.tsx +++ b/docs/src/routes/docs/create-form/trigger.tsx @@ -21,7 +21,7 @@ const Trigger = () => {
{`(name: string | string[]) => void`}
+ >{`(name: string | string[]) => Promise`}

Props


diff --git a/src/types/form.ts b/src/types/form.ts index 1b89273..555ef26 100644 --- a/src/types/form.ts +++ b/src/types/form.ts @@ -36,7 +36,7 @@ export type TriggerOptions = { export type Trigger = ( name?: Path | Path[], options?: TriggerOptions -) => void; +) => Promise; export type SubmitHandler = (values: F) => void;