import { type InferDefaults } from "https://deno.land/x/valibot@v0.35.0/src/index.ts";
Infer defaults type.
Type Parameters
TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>
definition: TSchema extends ? -readonly [TKey in keyof TEntries]: InferDefaults<TEntries[TKey]> : TSchema extends ? -readonly [TKey in keyof TEntries]: InferDefaults<TEntries[TKey]> : TSchema extends ? -readonly [TKey in keyof TItems]: InferDefaults<TItems[TKey]> : TSchema extends ? -readonly [TKey in keyof TItems]: InferDefaults<TItems[TKey]> : Awaited<InferDefault<TSchema>>
| ObjectWithRestSchema<infer TEntries, BaseSchema<unknown, unknown, BaseIssue<unknown>>, ErrorMessage<ObjectWithRestIssue> | undefined>
| ObjectWithRestSchemaAsync<infer TEntries, BaseSchema<unknown, unknown, BaseIssue<unknown>>, ErrorMessage<ObjectWithRestIssue> | undefined>
| TupleWithRestSchema<infer TItems, BaseSchema<unknown, unknown, BaseIssue<unknown>>, ErrorMessage<TupleWithRestIssue> | undefined>
| TupleWithRestSchemaAsync<infer TItems, BaseSchema<unknown, unknown, BaseIssue<unknown>>, ErrorMessage<TupleWithRestIssue> | undefined>