Skip to content

API reference / @backpack/aws-lambda / rest / ValidatedJsonResultOptions

Interface: ValidatedJsonResultOptions<T>

Extends

Type Parameters

Type Parameter
T

Properties

headers?

ts
optional headers: Partial<Record<HttpResponseHeader, string>> & object;

Type declaration

NameType
Content-Type?"application/json" | "application/problem+json"

Inherited from

JsonResultOptions.headers


multiValueHeaders?

ts
optional multiValueHeaders: Record<HttpResponseHeader, string[]>;

Inherited from

JsonResultOptions.multiValueHeaders


statusCode?

ts
optional statusCode: HttpStatus;

Inherited from

JsonResultOptions.statusCode


validated

ts
validated: ZodType<T>;