File tree 3 files changed +481
-3
lines changed
fixtures/typescript/basics
3 files changed +481
-3
lines changed Original file line number Diff line number Diff line change @@ -112,10 +112,10 @@ module.exports = function convert(config) {
112
112
const firstTypeArgument = typeArguments [ 0 ] ;
113
113
const typeArgumentsParent = firstTypeArgument . parent ;
114
114
/**
115
- * In the case of the parent being a CallExpression we have to use slightly different
116
- * logic to calculate the correct end position
115
+ * In the case of the parent being a CallExpression or a TypeReference we have to use
116
+ * slightly different logic to calculate the correct end position
117
117
*/
118
- if ( typeArgumentsParent && typeArgumentsParent . kind === SyntaxKind . CallExpression ) {
118
+ if ( typeArgumentsParent && ( typeArgumentsParent . kind === SyntaxKind . CallExpression || typeArgumentsParent . kind === SyntaxKind . TypeReference ) ) {
119
119
const lastTypeArgument = typeArguments [ typeArguments . length - 1 ] ;
120
120
const greaterThanToken = nodeUtils . findNextToken ( lastTypeArgument , ast ) ;
121
121
end = greaterThanToken . end ;
Original file line number Diff line number Diff line change
1
+ class AudioBufferList {
2
+ mBuffers : interop . Reference < any /*AudioBuffer*/ > ;
3
+ }
You can’t perform that action at this time.
0 commit comments