Is there an equivalent to Zod's `coerce`?
Hello, I am trying to convert the following Zod schema to ArkType:
So far, I have this:
But I get errors when using default for
I assume it's not inferring the types correctly or am I doing something wrong? Is this a right way to emulate Zod's
So far, I have this:
But I get errors when using default for
limit and page saying: Argument of type 'number' is not assignable to parameter of type '() => never'.ts(2345) and also the type when hovering over it doesn't seem right:I assume it's not inferring the types correctly or am I doing something wrong? Is this a right way to emulate Zod's
coerce?