Arktype Error instance of?
Hi there.
If I have
And that throws what would that error be an instance of that I can use? tried
error instanceof type.errors || error instanceof ArkErrors with no luck.
Thanks!2 Replies
nvm I think its
AggregateError? Most likely is but ill use that for nowIn recent versions it is a
TraversalError. I'm just now realizing I don't actually export that from arktype so you'
d need to get it from @ark/schema, but I'll add it directly in the next release