2 ms·
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.
by mullsork 4y 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.
- Pxtl 4y agoAh, I didn't realize you could use oneOf with refs or objects, I've only ever seen it used with primitives. Thanks!