Given:
interface Example {
items: {
[k: string]: {
name: string;
value: {
subName: {
subValue: string;
};
};
};
};
};
If we create a type for items
using a lookup type as follows:
type Items = Example['items'];
However, what if the goal is to obtain the type of the object below the indexer?
type SubItems = Example['items']['']['value'];
The approach above may not be successful. Is there a method to access the type of the value
object?