Consider removing special checks for specialized signatures with other overloads #6143
Labels
Breaking Change
Would introduce errors in existing code
Committed
The team has roadmapped this issue
Domain: Literal Types
Unit types including string literal types, numeric literal types, Boolean literals, null, undefined
Fixed
A PR has been merged for this issue
Suggestion
An idea for TypeScript
Milestone
Specialized signatures needing to be compatible with an overload was an artificial requirement due to issues in #943. Now that we've fixed that, we should consider what we're going to do with this rule.
Could we remove it wholesale? That would potentially be a breaking change, but it seems like good one. Basically, the situations you'd run into this would be where you have something like the following...
Where now we'd check if the implementation was assignable to the specialized signatures and give an error. That seems like a good change.
The text was updated successfully, but these errors were encountered: