I'm trying to understand how to create a interface with unknown number of properties in typescript? and I don't understand it because this code generates an error : why, I just want an object with any number of members of type I1
interface I0 {
[key: string]: I1;
}
class O implements I0 {
m: {
p1: "test",
p2: "test"
}
}
interface I1 {
[key: string]: "string";
}