Skip to main content
Defined in: flows/schema.ts:41 Structural, zod-compatible schema: anything with 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()

Defined in: flows/schema.ts:42

Parameters

Returns

| SchemaParseResult<T> | Promise<SchemaParseResult<T>>

safeParseAsync()?

Defined in: flows/schema.ts:43

Parameters

Returns

Promise<SchemaParseResult<T>>