Typescript: How do I define interfaces for nested objects? : <p>Assume I have a JSON payload that parses into something like this: </p>

<pre><code>{
    name: "test",
    items: {
        "a": {
            id: 1,
            size: 10
        },
        "b": {
            id: 2,
            size: 34
        }
    }
}
</code></pre>

<p>How would I set up the definition of the Example interface to model that the value of the items property is an object whose keys are strings and whose values are defined by the Item interface:</p>

<pre><code>export interface Example {
    name: string;
    items: ???;

}

export interface Item {
    id: number;
    size: number;
}
</code></pre>
