4 ms·
You can define all the different sub types separately and make the discriminated union using them. The use only a single type for an endpoint if it only uses a
by Sammi 1y ago
You can define all the different sub types separately and make the discriminated union using them. The use only a single type for an endpoint if it only uses a single type. Only use the discriminated union where you actually might be handling multiple types.