Feat: infer parameter types for the implementation signature of an overloaded method #55236
Open
5 tasks done
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
Suggestion
implicitly infer parameter types for the implementation signature of an overloaded method
This issue is a complement to #7763, #34319
🔍 Search Terms
TypeScript interface with multiple signatures;
infer params from different signatures;
implementation signature of an overloaded method;
✅ Viability Checklist
My suggestion meets these guidelines:
⭐ Suggestion
Add an implicit inference to the params or restricted inference in some cases
📃 Motivating Example
Before, you can achieve simple
Now you can use
💻 Use Cases
Prevent complex type annotation workarounds, simplify codes, make TypeScript sound again!
Best regards.
The text was updated successfully, but these errors were encountered: