output-sdk
    Preparing search index...

    Type Alias StepFunctionWrapper<StepFunction>

    StepFunctionWrapper: Parameters<StepFunction> extends [infer Input]
        ? (input: Input) => ReturnType<StepFunction>
        : () => ReturnType<StepFunction>

    A wrapper around the user defined fn handler function.

    It accepts the same input and returns the same value, calling the user function inside.

    It adds input and output validation based on the inputSchema, outputSchema.

    Type Parameters

    • StepFunction

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

    A value matching the schema defined by outputSchema.