import { type InferFallbacks } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/index.ts";
Infer fallbacks type.
Type Parameters
TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>
definition: TSchema extends ? -readonly [TKey in keyof TEntries]: InferFallbacks<TEntries[TKey]> : TSchema extends ? -readonly [TKey in keyof TEntries]: InferFallbacks<TEntries[TKey]> : TSchema extends ? -readonly [TKey in keyof TItems]: InferFallbacks<TItems[TKey]> : TSchema extends ? -readonly [TKey in keyof TItems]: InferFallbacks<TItems[TKey]> : Awaited<InferFallback<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>