@@ -1449,7 +1449,7 @@ export function tsPlugin(options?: {
14491449 // type and not as a const signifier. We'll *never* be able to find this
14501450 // name, since const isn't allowed as a type name. So in this instance we
14511451 // get to pretend we're the type checker.
1452- if ( typeReference . typeParameters ) {
1452+ if ( typeReference . typeParameters || typeReference . typeArguments ) {
14531453 this . raise (
14541454 typeReference . typeName . start ,
14551455 TypeScriptError . CannotFindName ( {
@@ -1573,7 +1573,7 @@ export function tsPlugin(options?: {
15731573 node . qualifier = this . tsParseEntityName ( ) ;
15741574 }
15751575 if ( this . tsMatchLeftRelational ( ) ) {
1576- node . typeParameters = this . tsParseTypeArguments ( ) ;
1576+ node . typeArguments = this . tsParseTypeArguments ( ) ;
15771577 }
15781578 return this . finishNode ( node , 'TSImportType' ) ;
15791579 }
@@ -1587,7 +1587,7 @@ export function tsPlugin(options?: {
15871587 node . exprName = this . tsParseEntityName ( ) ;
15881588 }
15891589 if ( ! this . hasPrecedingLineBreak ( ) && this . tsMatchLeftRelational ( ) ) {
1590- node . typeParameters = this . tsParseTypeArguments ( ) ;
1590+ node . typeArguments = this . tsParseTypeArguments ( ) ;
15911591 }
15921592 return this . finishNode ( node , 'TSTypeQuery' ) ;
15931593 }
@@ -1652,7 +1652,7 @@ export function tsPlugin(options?: {
16521652
16531653 if (
16541654 type . type === 'TSTypeReference' &&
1655- ! type . typeParameters &&
1655+ ! type . typeArguments &&
16561656 type . typeName . type === 'Identifier'
16571657 ) {
16581658 labeledNode . label = type . typeName as any ;
@@ -1735,7 +1735,7 @@ export function tsPlugin(options?: {
17351735 const node = this . startNode ( ) ;
17361736 node . typeName = this . tsParseEntityName ( ) ;
17371737 if ( ! this . hasPrecedingLineBreak ( ) && this . tsMatchLeftRelational ( ) ) {
1738- node . typeParameters = this . tsParseTypeArguments ( ) ;
1738+ node . typeArguments = this . tsParseTypeArguments ( ) ;
17391739 }
17401740 return this . finishNode ( node , 'TSTypeReference' ) ;
17411741 }
@@ -2886,7 +2886,7 @@ export function tsPlugin(options?: {
28862886 // ---start parseNewCallee extension
28872887 const { callee } = node ;
28882888 if ( callee . type === 'TSInstantiationExpression' && ! callee . extra ?. parenthesized ) {
2889- node . typeParameters = callee . typeParameters ;
2889+ node . typeArguments = callee . typeArguments ;
28902890 node . callee = callee . expression ;
28912891 }
28922892 // ---end
@@ -4591,7 +4591,7 @@ export function tsPlugin(options?: {
45914591 startLoc ,
45924592 _optionalChained
45934593 ) ;
4594- result . typeParameters = typeArguments ;
4594+ result . typeArguments = typeArguments ;
45954595 return result ;
45964596 }
45974597
@@ -4609,7 +4609,7 @@ export function tsPlugin(options?: {
46094609 ) ;
46104610 // Handles invalid case: `f<T>(a:b)`
46114611 this . tsCheckForInvalidTypeCasts ( node . arguments ) ;
4612- node . typeParameters = typeArguments ;
4612+ node . typeArguments = typeArguments ;
46134613 if ( _optionalChained ) {
46144614 node . optional = isOptionalCall ;
46154615 }
@@ -4633,7 +4633,7 @@ export function tsPlugin(options?: {
46334633 }
46344634 const node = this . startNodeAt ( startPos , startLoc ) ;
46354635 node . expression = base ;
4636- node . typeParameters = typeArguments ;
4636+ node . typeArguments = typeArguments ;
46374637 return this . finishNode ( node , 'TSInstantiationExpression' ) ;
46384638 } ) ;
46394639 if ( missingParenErrorLoc ) {
@@ -5152,7 +5152,7 @@ export function tsPlugin(options?: {
51525152 const typeArguments = this . tsTryParseAndCatch ( ( ) =>
51535153 this . tsParseTypeArgumentsInExpression ( )
51545154 ) ;
5155- if ( typeArguments ) node . typeParameters = typeArguments ;
5155+ if ( typeArguments ) node . typeArguments = typeArguments ;
51565156 }
51575157
51585158 node . attributes = [ ] ;
0 commit comments