scope() how to bypass circular reference error?
How to integrate generics with extend that need to access a type in scope?
type()
is creating its own scope. The question is, how can I solve it then?
```ts
scope({
queryValue: [...How to create the Typescript type from a generic?
Is there a way to preserve jsdoc in arktype?
What is the arktype 2 syntax for inferring classes with a private constructor?
How to create an array of type.instanceOf?
Validate Record values with morphs
How to properly infer the return type of a generic function returning ArkType schemas?
as
. Here's the link to the relevant example code: [TS Playground](https://www.typescriptlang.org/play/?target=9#code/JYWwDg9gTgLgBAbzjAnmApnAhgZ21AawBU1MBfOAMyghDgHItDUN6AoNgYwgDsd4AjgFd0UFAFkIAEyEAbTAF58xUgDoQ0uegAUCNnDjDRKEhgBcDAEQBBS3AA+cSwCE7jywGFL9ADT64AOboPKJYsgBK6DiQfOhmegYG3FJxDDxCIABGor7+BiA4ARb0-FDAPAG5iXBSWDBYFgnVcDgAFkzoUtZQ...Testing a type in pipe
configure({ onUndeclaredKey: 'delete' }) seems to allow extra properties through.
Easier way to chain off of string.integer.parse?
const numberStringGreaterThan5 = z.coerce.number().gt(5)
numberStringGreaterThan5.parse("6")
const numberStringGreaterThan5 = z.coerce.number().gt(5)
numberStringGreaterThan5.parse("6")
Fail fast on union type
Is ArkType compatible with the overrides made in `@total-typescript/reset`, or will stuff break?
Zod "parity"? (nanoid, emoji,...)
How can I globally configure a subtypes error
ctx
object, code
is just pattern. The closest thing I could do is match on the description, but that seems brittle. Zod seems to expose a .validation
subtype to check on....Is there a way to have defaults apply when a key is undefined, in addition to when a key is missing?
very silly question, is there an easier way to validate the length of a trimmed string?
type("string.trim > 2")
type("string.trim > 2")
Uncaught ParseError: MinLength operand must be a string or an array (was never)
...built-in stringify morphs
string.integer.parse
, but are there similar ones for the other way? e.g. number.integer.stringify
Intersection/Union Validation Errors
'email' is unresolvable
email
magic word is breaking. For example
```ts...