From 205d6630969980fd95634a39e9993b8e435fcf04 Mon Sep 17 00:00:00 2001 From: Simon Buchan Date: Thu, 4 Apr 2019 12:02:59 +1300 Subject: [PATCH] Revert "aws-lambda Authorizer response context only allows booleans, numbers and strings (#33437)" This reverts commit eed96d4372ed55c81eb7e7708c5f3ea02c579ddd. --- types/aws-lambda/index.d.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/types/aws-lambda/index.d.ts b/types/aws-lambda/index.d.ts index 72a0edabf9..fc9b0e4532 100644 --- a/types/aws-lambda/index.d.ts +++ b/types/aws-lambda/index.d.ts @@ -27,7 +27,6 @@ // Erik Dalén // Loïk Gaonac'h // Roberto Zen -// Richard Cornelissen // Grzegorz Redlicki // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -565,10 +564,10 @@ export type StatementResource = MaybeStatementPrincipal & ({ Resource: string | export type StatementPrincipal = MaybeStatementResource & ({ Principal: PrincipalValue } | { NotPrincipal: PrincipalValue }); /** * API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Statement. - * https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-output.html + * http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output */ export interface AuthResponseContext { - [name: string]: boolean | number | string; + [name: string]: any; } /**