UNPKG

@tsed/platform-aws

Version:
21 lines 780 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AwsEvent = void 0; const common_1 = require("@tsed/common"); const core_1 = require("@tsed/core"); const schema_1 = require("@tsed/schema"); const ParseApiGatewayPipe_1 = require("../pipes/ParseApiGatewayPipe"); /** * Return the decoded x-apigateway-event * @decorator */ function AwsEvent() { return (0, core_1.useDecorators)((0, common_1.HeaderParams)({ expression: "x-apigateway-event", useConverter: false, useType: String, useValidation: false }), (0, schema_1.Description)("x-apigateway-event serialized Json"), (0, common_1.UsePipe)(ParseApiGatewayPipe_1.ParseApiGatewayPipe)); } exports.AwsEvent = AwsEvent; //# sourceMappingURL=awsEvent.js.map