Closed
Description
I was hoping this could work:
class A {
public a: string;
}
interface B {
[index: string]: A;
}
interface C extends B {
a;
b;
c;
}
let c: C;
c.a.a // c.a of type A
but members of interface C has type any
instead I was hoping I could get type A
?
Notice I don't want to define directly:
let c: B;
because I need to pass C as a type with defined props.