From efeb53cca37ef666451f0ff051ce43247e50a20e Mon Sep 17 00:00:00 2001 From: Ogura Daiki <8hachibee125@gmail.com> Date: Wed, 21 Feb 2024 10:30:40 +0900 Subject: [PATCH] apply a comment --- src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) 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,