Enum type with a single enum member resolves directly to enum member
MartynasZilinskas opened this issue · 0 comments
MartynasZilinskas commented
import * as ts from "typescript";
export enum AdditionalKinds {
Any = "any"
}
export type Foo = ts.SyntaxKind | AdditionalKinds;
Result:
{
"ApiTypeKind": "union",
"Text": "Foo",
"Members": [
{
"ApiTypeKind": "reference",
"Text": "SyntaxKind",
"ReferenceId": "EnumDeclaration-1",
"SymbolName": "SyntaxKind"
},
{
"ApiTypeKind": "reference",
"Text": "AdditionalKinds",
"ReferenceId": "EnumMember-0",
"SymbolName": "Any"
}
]
}