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 Version: 2.1.4 and nightly(2.2.0-dev.20161213)
Code
interfaceBase{foo: {[key: string]: any};bar: any;baz: any;}interfaceE1<T>extendsBase{foo: T;}interfaceSomething{name: string,value: string};interfaceE2extendsBase{foo: Partial<Something>;// or other mapped type}interfaceE3<T>extendsBase{foo: Partial<T>;// or other mapped type}
Expected behavior:
Successfully compiled.
Actual behavior:
E1 and E2 are OK, but E3 causes compile error.
error TS2430: Interface 'E3<T>' incorrectly extends interface 'Base'.
Types of property 'foo' are incompatible.
Type 'Partial<T>' is not assignable to type '{ [key: string]: any; }'.