Currently, I am trying to figure out how to declare and populate a TypeScript list of lists.
The structure of the list should be as follows:
List<CustomList<>, number>
Typically, I would create a standard list like this:
someList: { text: any, value: any }[] = [];
But now, I require something similar to this:
List<someList, id: number>
Is anyone facing the same issue or perhaps have any ideas on how to achieve this?
Thank you.