From 42bba1132325e97fd0d9c9c5e7a530d6707cbb8f Mon Sep 17 00:00:00 2001 From: Rico Huijbers Date: Thu, 11 Oct 2018 10:14:48 +0200 Subject: [PATCH] fix(cfn2ts): don't expect CloudFormationToken This breaks compatibility with classes that are Tokens but not CloudFormationTokens. We just require the `Token` interface, so we shouldn't require `CloudFormationToken` implementations. --- tools/cfn2ts/lib/genspec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cfn2ts/lib/genspec.ts b/tools/cfn2ts/lib/genspec.ts index 250af0858abb8..79828f35d869f 100644 --- a/tools/cfn2ts/lib/genspec.ts +++ b/tools/cfn2ts/lib/genspec.ts @@ -118,7 +118,7 @@ export class AttributeTypeDeclaration { } export const TAG_NAME = new CodeName('', CORE_NAMESPACE, 'Tag'); -export const TOKEN_NAME = new CodeName('', CORE_NAMESPACE, 'CloudFormationToken'); +export const TOKEN_NAME = new CodeName('', CORE_NAMESPACE, 'Token'); /** * Resource attribute