Helpers
definedAsfAction
The defineAsfAction
function is a function that allows you to define an Astro Superforms Action.
handler
- Required
- Type: AsfActionHandler
The handler
parameter is a mandatory parameter that specifies the handler function for the Astro Superforms Action.
input
- Required
- Type:
ZodType
The input
parameter is a mandatory parameter that specifies the input schema for the Astro Superforms Action.
getForm
getForm
is a function that returns the supervalidated form
from an Astro Action safe result of an Astro Superforms Action result.
result
- Required
- Type: AsfSafeResult
The result
parameter is a mandatory parameter that specifies the result of the action.
getRedirectLocation
getRedirectLocation
is a function that returns the redirect location from an Astro Action safe result of an Astro Superforms Action
result.
result
- Required
- Type: AsfSafeResult
The result
parameter is a mandatory parameter that specifies the result of the action.