safeParse(input). When safeParseAsync
exists it is preferred (zod schemas with async refinements throw from safeParse).
T is the parsed (output) type stored in c.state / returned by c.ask.
Type Parameters
Methods
safeParse()
Parameters
Returns
|SchemaParseResult<T>
| Promise<SchemaParseResult<T>>
safeParseAsync()?
Parameters
Returns
Promise<SchemaParseResult<T>>