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: nightly (2.2.0-dev.20161211)
Code
type Foo = { foo: string, bar?: string }; type X<T> = { [K in keyof T]: any }; type FooX = { [K in keyof Foo]: any }; const a: X<Foo> = { foo: "foo" }; // passed const b: FooX = { foo: "foo" }; // failed: property 'bar' is missing
Expected behavior: Both passed or both failed (maybe both passed)
Actual behavior: Comment in code.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
TypeScript Version: nightly (2.2.0-dev.20161211)
Code
Expected behavior:
Both passed or both failed (maybe both passed)
Actual behavior:
Comment in code.
The text was updated successfully, but these errors were encountered: