
Colin McDonnell - Zod, tRPC, EdgeDB
devtools.fm: Developer Tools, Open Source, Software Development
00:00
Typescript
In egety b, you're not allowed to name a property like limit or offset because those are reserved key words. And so we just kind of, like flatten all that out and have it all in one object. The idea basically is based on inset theory where every value, every like egcuel expression that you can write, corresponds to a set of values which correspond with type and cardinality. In typescript as well, if you have zero or more strings, that's just an array of strings. If you have one or more, you actually would represent that with a tuples - string braces as the first element; dot, dot,. dot, dot,
Transcript
Play full episode