interface A { [a: number]: string; } interface B { [index: string]: { prop } } interface C { readonly [a: number]: string; }