-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
type information tooltips stopped making sense #10337
Milestone
Comments
RyanCavanaugh
added
the
Needs More Info
The issue still hasn't been fully clarified
label
Aug 15, 2016
What's a standalone repro of this? |
latest build sorry, don't have time to narrow it to the core export type Promised<a> = Resolved<a> | Unresolved<a>;
export interface Chainable<a> {
then<b>(map: (value: a) => b | Promised<b>): Promised<b>;
}
export interface Resolved<a> extends Chainable<a> {
value: a;
}
export interface Unresolved<a> extends Chainable<a> {
thens: {
(value: a): void;
}[];
}
interface Left<a> {
left: a;
}
function leftFrom<a>(value: a): Left<a> {
return { left: value };
}
interface Right<a> {
right: a;
}
function rightFrom<a>(value: a): Right<a> {
return { right: value };
}
type Either<a, b> = Left<a> | Right<b>
declare function willPollAsLongAsUntil<a, r>(
state: a,
check: (state: a) => Either<a, r>
): Promised<r>;
const tried = willPollAsLongAsUntil(0, count => count < 100
? leftFrom(count + 1)
: rightFrom('stop')) // Promised<number, string> |
RyanCavanaugh
added
Bug
A bug in TypeScript
and removed
Needs More Info
The issue still hasn't been fully clarified
labels
Aug 15, 2016
2.0 RC is out, would this bug be a part of the 2.0 release? it's rather big annoying and very visible, 2.1 milestone looks like a typo (should be 2.0.1 imho) |
This was referenced Sep 21, 2016
This makes reading types very hard 😒 Can we get a fix for this soon? |
Simple test case: #10793 (comment) |
This looks fixed in latest. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
despite having a single type parameter
Promised
interface is shown with 2 type parameters in the tooltipThe text was updated successfully, but these errors were encountered: