Infers the schema type from a schema validator.
const schema = avery.object({ name: avery.string(), age: avery.number(),});type Schema = InferSchema<typeof schema>;// ^^^^^^ = { name: string, age: number } Copy
const schema = avery.object({ name: avery.string(), age: avery.number(),});type Schema = InferSchema<typeof schema>;// ^^^^^^ = { name: string, age: number }
Infers the schema type from a schema validator.