Setu-TS
    Preparing search index...

    Interface CosmosItemResponse<T>

    The response envelope every single-item operation answers with.

    resource is undefined for a 404 point read — measured, and the reason the read path branches on the field rather than catching.

    0.2.0

    interface CosmosItemResponse<T> {
        resource?: T;
        statusCode: number;
    }

    Type Parameters

    • T

      The resource shape

    Index
    resource?: T

    The resource, or undefined when none was returned.

    statusCode: number

    The HTTP status code.