Skip to content

Commit

Permalink
apply a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hachibeeDI committed Feb 21, 2024
1 parent bf17c91 commit efeb53c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ export type Controller<State extends StateRestriction> = {
type FormHook<State extends StateRestriction, Schema extends ZodType<any, any, any>> = {
controller: Controller<State>;

/**
* @param handler handling logic
* @returns created handler is always return Promise, because of the schema validation run it asynchronously.
*/
handleSubmit: <R>(
handler: (
e: BaseSyntheticEvent,
Expand Down

0 comments on commit efeb53c

Please sign in to comment.