Content
@
0 reply
0 recast
0 reaction
Nicholas Charriere
@pushix
I was looking at google's new node SDK for gemini. I like this "disjoint types" pattern. A very good way to make your TypeScript very readable + meaningful, I have used something similar, but not with the "never" trick.
9 replies
0 recast
9 reactions
Gabriel Ayuso
@gabrielayuso.eth
I usually do this with protobufs' oneof Didn't know about `never`. Nice feature.
0 reply
0 recast
1 reaction