Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Apr 13, 2021. It is now read-only.

Commit ea6c3bb

Browse filesBrowse files
authored
Breaking: Use TSTypeReference for TypeParameters (eslint#340)
1 parent a9ca775 commit ea6c3bb
Copy full SHA for ea6c3bb

File tree

Expand file treeCollapse file tree

2 files changed

+340
-340
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+340
-340
lines changed

‎lib/convert.js

Copy file name to clipboardExpand all lines: lib/convert.js
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.