From 34da25939cd4487e57be6bc7a650aeeccd4b4de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ste=CC=81phane=20Este-Gracias?= Date: Sat, 27 Jun 2020 11:45:12 +0200 Subject: [PATCH] Support enum type declaration --- lib/facade_converter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/facade_converter.ts b/lib/facade_converter.ts index 3f1bf0b..8a62b51 100644 --- a/lib/facade_converter.ts +++ b/lib/facade_converter.ts @@ -639,7 +639,8 @@ export class FacadeConverter extends base.TranspilerBase { } const typeDeclaration = symbol.declarations.find((declaration: ts.Declaration) => { return ts.isInterfaceDeclaration(declaration) || ts.isClassDeclaration(declaration) || - ts.isTypeAliasDeclaration(declaration) || ts.isTypeParameterDeclaration(declaration); + ts.isTypeAliasDeclaration(declaration) || ts.isTypeParameterDeclaration(declaration) || + ts.isEnumDeclaration(declaration); }); if (!typeDeclaration) { this.reportError(n, `no type declarations for symbol ${symbol.name}`);