Let's say I have an object of this interface
interface PaginatedResult {
results: {
item: Item;
}[];
pagination: {
pageSize: number;
offset: number;
total: number;
}
}
How do I get that Item type of results item?
If I'd wanted just type of results I'd go PaginatedResult["results"] but that resolves to {items: Item}[]