diff --git a/src/index.ts b/src/index.ts index b54cf6e..b158486 100644 --- a/src/index.ts +++ b/src/index.ts @@ -249,6 +249,10 @@ export type Controller = { type FormHook> = { controller: Controller; + /** + * @param handler handling logic + * @returns created handler is always return Promise, because of the schema validation run it asynchronously. + */ handleSubmit: ( handler: ( e: BaseSyntheticEvent,