ts-lambda-api - v2.5.2
    Preparing search index...

    Interface FinalizeHandlerOutput<Output>

    interface FinalizeHandlerOutput<Output extends object> {
        output: Output;
        response: unknown;
    }

    Type Parameters

    • Output extends object

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    output: Output
    response: unknown

    The raw response object from runtime is deserialized to structured output object. The response object is unknown so you cannot modify it directly. When work with response, you need to guard its type to e.g. HttpResponse with 'instanceof' operand.

    During the deserialize phase of the execution of a middleware stack, a deserialized response may or may not be available