non-nullable-type-assertion-style
Configuration
rslint.config.ts
Rule Details
Enforce non-null assertions over explicit type assertions when the asserted type is the same as the original type minus null and undefined. A non-null assertion (!) is a more concise way to remove null and undefined from a type than using an as type assertion.
Examples of incorrect code for this rule:
Examples of correct code for this rule: