We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 Version: 2.9.0-dev.20180430
Code
interface I { x: any; } type Foo<T extends number> = T; declare function f<K extends keyof I>(type: K): Foo<I[K]>;
Expected behavior:
No error.
Actual behavior:
src/a.ts:5:53 - error TS2344: Type 'I[K]' does not satisfy the constraint 'number'. 5 declare function f<K extends keyof I>(type: K): Foo<I[K]>;
This was broken by #23768 (fc2f16c): tested that it worked in the commit before it, 4e401ca .
Discovered in ember-data on DefinitelyTyped.
ember-data
The text was updated successfully, but these errors were encountered:
ahejlsberg
No branches or pull requests
TypeScript Version: 2.9.0-dev.20180430
Code
Expected behavior:
No error.
Actual behavior:
This was broken by #23768 (fc2f16c): tested that it worked in the commit before it, 4e401ca .
Discovered in
ember-data
on DefinitelyTyped.The text was updated successfully, but these errors were encountered: