Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Support enum type declaration #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/facade_converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down