class One { controls: { [key: string]: number }; } interface Two<T> extends One { controls: { [key in keyof T]: number } } I get an error that:
TS2430: Interface 'Two' incorrectly extends interface 'One'. Types of property 'controls' are incompatible. Type '{ [key in keyof T]: number; }' is not assignable to type '{ [key: string]: number; }'
In typescript playground (click) everything seems to be okay. What is it happening?
Typescript version: 2.4.2