-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript unable to infer types properly between interfaces and overloaded methods. #43643
Labels
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
Comments
DanielRosenwasser
added
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
labels
Apr 12, 2021
@DanielRosenwasser I'm not sure if the |
It's either - I'm going to try to discuss this a bit on our side, but I don't know if we have a solution. |
14 tasks
benlesh
added a commit
to benlesh/angular
that referenced
this issue
Apr 13, 2021
Adds a fix to make sure that RxJS v7 Observable is compatible with AsyncPipe. This is a typings-only change. For more information see: microsoft/TypeScript#43643
mhevery
pushed a commit
to angular/angular
that referenced
this issue
May 4, 2021
Adds a fix to make sure that RxJS v7 Observable is compatible with AsyncPipe. This is a typings-only change. For more information see: microsoft/TypeScript#43643 PR Close #41590
mhevery
pushed a commit
to angular/angular
that referenced
this issue
May 4, 2021
Adds a fix to make sure that RxJS v7 Observable is compatible with AsyncPipe. This is a typings-only change. For more information see: microsoft/TypeScript#43643 PR Close #41590
mhevery
pushed a commit
to angular/angular
that referenced
this issue
May 4, 2021
Adds a fix to make sure that RxJS v7 Observable is compatible with AsyncPipe. This is a typings-only change. For more information see: microsoft/TypeScript#43643 PR Close #41590
14 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
Bug Report
In all versions of TS I can find, there's no way to mark certain call patterns of a method as deprecated while maintaining inference with certain interfaces. If an interface is split out into different overloads so certain overloads can be deprecated, then it breaks inference in some cases.
🔎 Search Terms
I'm not sure what to search for here. Interfaces?
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
result
isunknown
above.🙂 Expected behavior
result
would benumber
.The text was updated successfully, but these errors were encountered: