Skip to content

Commit

Permalink
fix: form action submit function callback return type
Browse files Browse the repository at this point in the history
Allow for form action submit function callbacks to be asynchronous
functions.
  • Loading branch information
McAllaster committed Feb 4, 2025
1 parent a09db8c commit ccbacde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1466,7 +1466,7 @@ declare module '@sveltejs/kit' {
* @param invalidateAll Set `invalidateAll: false` if you don't want the action to call `invalidateAll` after submission.
*/
update: (options?: { reset?: boolean; invalidateAll?: boolean }) => Promise<void>;
}) => void)
}) => MaybePromise<void>)
>;

/**
Expand Down

0 comments on commit ccbacde

Please sign in to comment.