Is there a way to redefine the old index signature when trying to extend an interface with different property types? I am encountering an error when adding new properties that have a different type from the original 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)