test: improve test case for 865b84bf

This commit is contained in:
Evan You
2021-08-06 13:01:39 -04:00
parent fdc9a4d301
commit 1994f1200d
3 changed files with 26 additions and 10 deletions

View File

@@ -1785,7 +1785,8 @@ export function walkIdentifiers(
parent &&
parent.type.startsWith('TS') &&
parent.type !== 'TSAsExpression' &&
parent.type !== 'TSNonNullExpression'
parent.type !== 'TSNonNullExpression' &&
parent.type !== 'TSTypeAssertion'
) {
return this.skip()
}