import { type SchemaWithRequiredAsync } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/methods/index.ts";
Schema with required type.
Type Parameters
TKeys extends ObjectKeys<TSchema> | undefined
TMessage extends ErrorMessage<NonOptionalIssue> | undefined
definition: TSchema extends ObjectSchemaAsync<infer TEntries, ErrorMessage<ObjectIssue> | undefined> | StrictObjectSchemaAsync<infer TEntries, ErrorMessage<StrictObjectIssue> | undefined> ? Omit<TSchema, "entries" | "~types" | "~validate"> & { readonly entries: RequiredEntries<TEntries, TKeys, TMessage>; readonly ~types?: { readonly input: InferObjectInput<RequiredEntries<TEntries, TKeys, TMessage>>; readonly output: InferObjectOutput<RequiredEntries<TEntries, TKeys, TMessage>>; readonly issue: NonOptionalIssue | InferIssue<TSchema>; } | undefined; readonly ~validate: (dataset: UnknownDataset, config?: Config<BaseIssue<unknown>>) => Promise<OutputDataset<InferObjectOutput<RequiredEntries<TEntries, TKeys, TMessage>>, NonOptionalIssue | InferIssue<TSchema>>>; } : TSchema extends LooseObjectSchemaAsync<infer TEntries, ErrorMessage<LooseObjectIssue> | undefined> ? Omit<TSchema, "entries" | "~types" | "~validate"> & { readonly entries: RequiredEntries<TEntries, TKeys, TMessage>; readonly ~types?: { readonly input: InferObjectInput<RequiredEntries<TEntries, TKeys, TMessage>> & { [key: string]: unknown; }; readonly output: InferObjectOutput<RequiredEntries<TEntries, TKeys, TMessage>> & { [key: string]: unknown; }; readonly issue: NonOptionalIssue | InferIssue<TSchema>; } | undefined; readonly ~validate: (dataset: UnknownDataset, config?: Config<BaseIssue<unknown>>) => Promise<OutputDataset<InferObjectOutput<RequiredEntries<TEntries, TKeys, TMessage>> & { [key: string]: unknown; }, NonOptionalIssue | InferIssue<TSchema>>>; } : TSchema extends ObjectWithRestSchemaAsync<infer TEntries, infer TRest, ErrorMessage<ObjectWithRestIssue> | undefined> ? Omit<TSchema, "entries" | "~types" | "~validate"> & { readonly entries: RequiredEntries<TEntries, TKeys, TMessage>; readonly ~types?: { readonly input: InferObjectInput<RequiredEntries<TEntries, TKeys, TMessage>> & { [key: string]: InferInput<TRest>; }; readonly output: InferObjectOutput<RequiredEntries<TEntries, TKeys, TMessage>> & { [key: string]: InferOutput<TRest>; }; readonly issue: NonOptionalIssue | InferIssue<TSchema>; } | undefined; readonly ~validate: (dataset: UnknownDataset, config?: Config<BaseIssue<unknown>>) => Promise<OutputDataset<InferObjectOutput<RequiredEntries<TEntries, TKeys, TMessage>> & { [key: string]: InferOutput<TRest>; }, NonOptionalIssue | InferIssue<TSchema>>>; } : never