output
    Preparing search index...

    Type Alias StepFunction<InputSchema, OutputSchema>

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

    The handler function of a step.

    Type Parameters

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

    Parsed step input (z.infer<inputSchema>).

    A value accepted by outputSchema before parse (z.input<outputSchema>).