Skip to content
This repository was archived by the owner on Jan 14, 2019. It is now read-only.

Commit 9298d8f

Browse files
armano2JamesHenry
authored andcommitted
refactor: add explicit implementation of TSLiteralType (#117)
1 parent 92ac986 commit 9298d8f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/convert.ts

+7
Original file line numberDiff line numberDiff line change
@@ -2686,6 +2686,13 @@ export default function convert(config: ConvertConfig): ESTreeNode | null {
26862686
});
26872687
break;
26882688
}
2689+
case SyntaxKind.LiteralType: {
2690+
Object.assign(result, {
2691+
type: AST_NODE_TYPES.TSLiteralType,
2692+
literal: convertChildType(node.literal)
2693+
});
2694+
break;
2695+
}
26892696
case SyntaxKind.TypeAssertionExpression: {
26902697
Object.assign(result, {
26912698
type: AST_NODE_TYPES.TSTypeAssertion,

0 commit comments

Comments
 (0)