rest-vir - v2.2.0
    Preparing search index...

    Type Alias CreateHostContextOutput<HostContext>

    CreateHostContextOutput: RequireExactlyOne<
        {
            context: HostContext;
            reject: {
                headers?: Readonly<Record<string, string | string[] | undefined>>;
                responseData?: DefaultErrorResponseType;
                statusCode: ErrorHttpStatus;
            };
        },
    >

    The shape a createHostContext callback must return: either a resolved context value (the request proceeds) or a reject instruction (the request short-circuits with the given status).

    Type Parameters

    • HostContext