A
arktype•2w ago
GreggOD

Type is not assignable to type (unions)

I am passing a typescript type into arktypes 'type' function, the type i am passing is has 2 union fields. It seems arktype expects the typescript union fields to have the same string formatting as itself which looks like a bug. See the screenshots and let me know 🙂
No description
No description
No description
1 Reply
GreggOD
GreggODOP•2w ago
I figure it out, you have to use declare.
No description

Did you find this page helpful?