I'm trying to extend an interface which has an index signature. However, when adding new properties that have different type, the old index signature leads to an error. Is it possible to redefine the old index signature?
interface A {
a: number;
b: string;
[key: string]: number | string;
}
interface B extends A {
c: Function;
}
Error: Property 'c' of type 'Function' is not assignable to string index type 'string | number'.ts(2411)