Rule proposal: Ban method override type narrowing #8964
Labels
enhancement: new plugin rule
New rule request for eslint-plugin
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
triage
Waiting for maintainers to take a look
Before You File a Proposal Please Confirm You Have Done The Following...
My proposal is suitable for this project
Description
Validate that overriden method signatures match the base signature (i.e. no narrowing of types)
Fail Cases
Pass Cases
Additional Info
TS issue was closed as "working as intended" but this is very dangerous, since this breaks some type safety, meaning that this introduces a risk of runtime errors
The text was updated successfully, but these errors were encountered: