arktypea
arktype9mo ago
TheGuy

Arktype Error instance of?

Hi there.

If I have

      const invalidUser = {
        name: 5,
        age: -5 // Invalid: age is negative
      };

      const result = userType.from(invalidUser as any);


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!
Was this page helpful?