179812/how-to-declare-and-initialize-a-dictionary-in-typescript
Why is this code not working as intended?
interface IPerson { firstName: string; lastName: string; } var persons: { [id: string]: IPerson; } = { "p1": { firstName: "F1", lastName: "L1" }, "p2": { firstName: "F2" } };