Given:
interface Example {
items: {
[k: string]: {
name: string;
value: {
subName: {
subValue: string;
};
};
};
};
};
It's possible to create a type for items with a lookup type:
type Items = Example['items'];
But what if I want to get the type below the indexer?
type SubItems = Example['items']['']['value'];
The above won't work. Is there a way to access the type of the value object?