You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\Greg\Desktop\demo-app\greg>tsc --version
Version 2.5.3
C:\Users\Greg\Desktop\demo-app\greg>tsc --init
message TS6071: Successfully created a tsconfig.json file.
C:\Users\Greg\Desktop\demo-app\greg>tsc
test.ts(12,9): error TS2322: Type '{ data: string; }' is not assignable to type 'Partial<S>'.
The text was updated successfully, but these errors were encountered:
Hey, thanks for filing, but this seems to be a duplicate of #19388, a duplicate of #17071, and a duplicate of #13442
In the future using the issue tracker's search functionality can make it easier for us to triage issues. Thanks!
DanielRosenwasser
changed the title
Generics with 'extends' invalid type assertion
Generic 'T' with 'extends Foo' is not assignable to 'Partial<Foo>'
Oct 25, 2017
DanielRosenwasser
changed the title
Generic 'T' with 'extends Foo' is not assignable to 'Partial<Foo>'
'Foo' is not assignable to 'Partial<T>' where generic 'T extends Foo'
Oct 25, 2017
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
TypeScript Version: 2.5.3
Code
Expected behavior:
Code to compile
Actual behavior:
The text was updated successfully, but these errors were encountered: