output
    Preparing search index...

    Type Alias StepFunctionWrapper<InputSchema, OutputSchema>

    StepFunctionWrapper: InputSchema extends AnyZodSchema
        ? (
            input: z.input<InputSchema>,
        ) => Promise<
            OutputSchema extends AnyZodSchema ? z.infer<OutputSchema> : void,
        >
        : () => Promise<
            OutputSchema extends AnyZodSchema ? z.infer<OutputSchema> : void,
        >

    A wrapper around the user defined fn handler function.

    Callers pass values accepted by inputSchema (z.input). The wrapper parses input, invokes fn, parses output, and returns z.infer<outputSchema>.

    Type Parameters

    • InputSchema extends AnyZodSchema | undefined = undefined
    • OutputSchema extends AnyZodSchema | undefined = undefined

    The step input before inputSchema parse.

    The step output after outputSchema parse.