output-sdk
    Preparing search index...

    Type Alias WorkflowFunctionWrapper<WorkflowFunction>

    WorkflowFunctionWrapper: [Parameters<WorkflowFunction>[0]] extends [
        undefined
        | null,
    ]
        ? (
            input?: null,
            config?: WorkflowInvocationConfiguration<Parameters<WorkflowFunction>[1]>,
        ) => ReturnType<WorkflowFunction>
        : (
            input: Parameters<WorkflowFunction>[0],
            config?: WorkflowInvocationConfiguration<Parameters<WorkflowFunction>[1]>,
        ) => ReturnType<WorkflowFunction>

    A wrapper around the user defined fn handler function.

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

    The second argument is a WorkflowInvocationConfiguration object, allowing workflows configuration overwrite.

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

    Type Parameters

    • WorkflowFunction

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

    Additional configuration for the invocation.

    A value matching the schema defined by outputSchema.