We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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.3.2 (or whatever is running in the playground, something similar is reproduced locally of course.)
Code
class Foo{ something: boolean; something2: boolean; } class MyClass<T extends Foo>{ func(x): Partial<T>{ return { something: true } } }
Expected behavior: The code is valid and the TS compiler recognizes that T in the context of MyClass can have a 'something' field.
Actual behavior: The code does not compile. The error is: "Type '{ something: true; }' is not assignable to type 'Partial'."
The text was updated successfully, but these errors were encountered:
Duplicate #12731
Sorry, something went wrong.
I'll be closing this issue then and try discussing it in the duplicate. Thanks.
No branches or pull requests
TypeScript Version: 2.3.2 (or whatever is running in the playground, something similar is reproduced locally of course.)
Code
Expected behavior:
The code is valid and the TS compiler recognizes that T in the context of MyClass can have a 'something' field.
Actual behavior:
The code does not compile. The error is: "Type '{ something: true; }' is not assignable to type 'Partial'."
The text was updated successfully, but these errors were encountered: