arktypea
arktype11mo ago
GreggOD

Is there a better way to do '.or' ?

We have some complicated union types. I am finding that doing '.or' off a arktype is going to cause a ugly nesting.

I am hoping there is a better way to use 'or', pehaps there is some util i dont know about?

See screenshots of chained or vs the idea or an or util.
image.png
image.png
Was this page helpful?