[no-unnecessary-type-assertion] False positive with null/undefined union type #1061
Labels
bug
Something isn't working
has pr
there is a PR raised to close this
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Looks like the fix for #529 did not cover all edge cases.
Expected Result
Should not trigger an error.
Actual Result
Triggers an error.
Additional Info
N/A
Versions
Also tested with master 054df27
The text was updated successfully, but these errors were encountered: