Hi,
foo:"string[]=['bar']"
2. given a type with all it's default can i create a concrete object from this type with all the default like: const foo=type({bar:"number.integer=42"})
and get back const defObj={bar: 42}
...How to ensure optimal discrimination of union types?
Extract schema inside an array
exact length "string = 2"
stateCode: 'string.alpha = 2'
?
stateCode: type.string.exactlyLength(2)
, works but curious if the =
works...Recursive types and d.ts files
TypeScript first - is possible or not? Can't remember :)
Can arktype drop data not covered by schema?
`.and` with default, expected behavior?
Filtering Array<unknown> to a type?
unknown
to an ark type?:
```ts
type transaction = type(...);
const items: unknown[] = ...;...How can we describe a string with a length restriction?
type("5 < string.numeric < 7").describe("valid otp")
type("5 < string.numeric < 7").describe("valid otp")
Encountering "Uncaught SyntaxError: Identifier 'module' has already been declared"
Optional required pairs?
Best way of sharing/compiling types?
Why are the partial operator `?` and explicit `undefined` incompatible?
Framework-level onDeepUndeclaredKey
email or empty string not working
export const feedbackSchema = type({
contact: 'string.email | string == 0'
});
export const feedbackSchema = type({
contact: 'string.email | string == 0'
});
Is there a recommended way to create a Record using a type as a key?
`narrow` vs `satisfying`
Are there docs on how to do non-trivial self reference?
this
keyword, but I'm looking to do something like:
```ts
const example = type({
name: "string",
selves: "this[]",...