Open guyrt opened 5 months ago
If you swap to a List
interface Pizza {
Toppings: List_String;
Size: string;
}
interface List_String {
Capacity: number;
Count: number;
Item?: string;
}
I would think the ideal implementation for all IEnumerablesT[]
where T
is defined inline for simple types.
Common practice is to define a class like this
Typechat.net will fail on the IEnumerable with the argument System.ArgumentException: 'IEnumerable`1 must be a class'. JSON serdes in .net know to model the IEnumerable as a JSON array. Can typechat do the same?