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
TypeScript has no other way to represent the type of the value produced by {[prop]: value}. We'd need some proposal for an all-encompassing feature for representing that along with use cases and proposed behavior.
TypeScript Version: Version 2.7.0-dev.20171118
Code
Expected behavior:
Compile with no errors.
Actual behavior:
Argument of type
{ [x: string]: DataType[K]; }
is not assignable to parameter of typePartial<DataType>
.This is very similar (but maybe not identical) to #13948 and #15534
The text was updated successfully, but these errors were encountered: