interface B {
[index: number]: string;
}
const arr: B = ['suukii'];
interface C {
[prop: string]: number;
[index: number]: string;
}
// Numeric index type 'string' is not assignable to string index type 'number'.
interface C {
[prop: string]: object;
[index: number]: Function;
}
interface Person {
name: string;
age?: number;
[prop: string]: string;
}
// Property 'age' of type 'number' is not assignable to string index type 'string'.