Rewrites the three Date fields to their JSON (string) form.
The conditional is distributive (naked T), so the ten-member
discriminated union survives — a plain Omit over the union would collapse it
into a single object type and lose the type discriminant.
Rewrites the three
Datefields to their JSON (string) form.The conditional is distributive (naked
T), so the ten-member discriminated union survives — a plainOmitover the union would collapse it into a single object type and lose thetypediscriminant.