top | item 35262376 (no title) mullsork | 2 years ago IIRC that's what oneOf is for. i.e. a discriminated union / sum type. My experience with oneOf is that tooling support for it is terrible. discuss order hn newest Pxtl|2 years ago Ah, I didn't realize you could use oneOf with refs or objects, I've only ever seen it used with primitives. Thanks!
Pxtl|2 years ago Ah, I didn't realize you could use oneOf with refs or objects, I've only ever seen it used with primitives. Thanks!
Pxtl|2 years ago