File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export class EnumConverter extends ConverterTypeComponent implements TypeTypeCon
11
11
* Test whether this converter can handle the given TypeScript type.
12
12
*/
13
13
supportsType ( context : Context , type : ts . Type ) : boolean {
14
- return ! ! ( type . flags & ts . TypeFlags . Enum ) ;
14
+ return ! ! ( type . flags & ts . TypeFlags . EnumLike ) ;
15
15
}
16
16
17
17
/**
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export class UnionOrIntersectionConverter extends ConverterTypeComponent impleme
17
17
* Test whether this converter can handle the given TypeScript type.
18
18
*/
19
19
supportsType ( context : Context , type : ts . UnionOrIntersectionType ) : boolean {
20
- return ! ! ( type . flags & ts . TypeFlags . UnionOrIntersection ) ;
20
+ return ! ! ( type . flags & ts . TypeFlags . UnionOrIntersection ) && ! ( type . flags & ts . TypeFlags . EnumLiteral ) ;
21
21
}
22
22
23
23
/**
You can’t perform that action at this time.
0 commit comments