[no-unnecessary-type-assertion] False positive with flow-based narrowing on generic types #3310
Open
3 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
No errors. (Note that removing the
!
causes TypeScript to complain.)Actual Result
Additional Info
I think this isn't a duplicate of #2248 because I checked on ts-ast-viewer and
any
didn't show up anywhere.Versions
@typescript-eslint/eslint-plugin
4.22.1-alpha.11
@typescript-eslint/parser
4.22.0
TypeScript
4.2.4
ESLint
7.25.0
node
12.21.0
The text was updated successfully, but these errors were encountered: