output-sdk
    Preparing search index...

    Type Alias StepFunction<InputSchema, OutputSchema>

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

    The handler function of a step.

    Type Parameters

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

    The step input; it matches the schema defined by inputSchema.

    A value matching the schema defined by outputSchema.