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

Commit ea6c3bb

Browse files
authored
Breaking: Use TSTypeReference for TypeParameters (#340)
1 parent a9ca775 commit ea6c3bb

File tree

2 files changed

+340
-340
lines changed

2 files changed

+340
-340
lines changed

lib/convert.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ module.exports = function convert(config) {
111111
],
112112
loc: nodeUtils.getLocFor(firstTypeArgument.pos - 1, greaterThanToken.end, ast),
113113
params: typeArguments.map(typeArgument => ({
114-
type: AST_NODE_TYPES.GenericTypeAnnotation,
114+
type: AST_NODE_TYPES.TSTypeReference,
115115
range: [
116116
typeArgument.getStart(),
117117
typeArgument.getEnd()
118118
],
119119
loc: nodeUtils.getLoc(typeArgument, ast),
120-
id: convertChild(typeArgument.typeName || typeArgument),
120+
typeName: convertChild(typeArgument.typeName || typeArgument),
121121
typeParameters: (typeArgument.typeArguments)
122122
? convertTypeArgumentsToTypeParameters(typeArgument.typeArguments)
123123
: null

0 commit comments

Comments
 (0)