Re:Full-Stack TypeScript with tRPC and React
by tczMUFlmoNk on Tuesday March 14, 2023 @06:19PM
(#35159854)
> Also, using a `oneof` field is correctly typed on the frontend as
But what about when the `oneof` has multiple variants with the same base type? Like:
Does this get compiled down to `contact_info: string | string` on the frontend? How do you tell which variant was used without encoding the discriminant?
[ Parent
| on HN ]
There are no comments on this comment yet.