import { type SchemaWithRequired } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/methods/required/required.ts";
Schema with required type.
Type Parameters
TKeys extends ObjectKeys<TSchema> | undefined
TMessage extends ErrorMessage<NonOptionalIssue> | undefined
definition: TSchema extends ObjectSchema<infer TEntries, ErrorMessage<ObjectIssue> | undefined> | StrictObjectSchema<infer TEntries, ErrorMessage<StrictObjectIssue> | undefined> ? Omit<TSchema, > & { readonly entries: RequiredEntries<TEntries, TKeys, TMessage>; readonly ~standard: StandardSchemaProps<InferObjectInput<RequiredEntries<TEntries, TKeys, TMessage>>, InferObjectOutput<RequiredEntries<TEntries, TKeys, TMessage>>>; readonly ~run: (dataset: UnknownDataset, config: Config<BaseIssue<unknown>>) => OutputDataset<InferObjectOutput<RequiredEntries<TEntries, TKeys, TMessage>>, NonOptionalIssue | InferIssue<TSchema>>; readonly ~types?: { readonly input: InferObjectInput<RequiredEntries<TEntries, TKeys, TMessage>>; readonly output: InferObjectOutput<RequiredEntries<TEntries, TKeys, TMessage>>; readonly issue: NonOptionalIssue | InferIssue<TSchema>; } | undefined; } : TSchema extends LooseObjectSchema<infer TEntries, ErrorMessage<LooseObjectIssue> | undefined> ? Omit<TSchema, > & { readonly entries: RequiredEntries<TEntries, TKeys, TMessage>; readonly ~standard: StandardSchemaProps<InferObjectInput<RequiredEntries<TEntries, TKeys, TMessage>> & { [key: string]: unknown; }, InferObjectOutput<RequiredEntries<TEntries, TKeys, TMessage>> & { [key: string]: unknown; }>; readonly ~run: (dataset: UnknownDataset, config: Config<BaseIssue<unknown>>) => OutputDataset<InferObjectOutput<RequiredEntries<TEntries, TKeys, TMessage>> & { [key: string]: unknown; }, NonOptionalIssue | InferIssue<TSchema>>; 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; } : TSchema extends ObjectWithRestSchema<infer TEntries, infer TRest, ErrorMessage<ObjectWithRestIssue> | undefined> ? Omit<TSchema, > & { readonly entries: RequiredEntries<TEntries, TKeys, TMessage>; readonly ~standard: StandardSchemaProps<InferObjectInput<RequiredEntries<TEntries, TKeys, TMessage>> & { [key: string]: InferInput<TRest>; }, InferObjectOutput<RequiredEntries<TEntries, TKeys, TMessage>> & { [key: string]: InferOutput<TRest>; }>; readonly ~run: (dataset: UnknownDataset, config: Config<BaseIssue<unknown>>) => OutputDataset<InferObjectOutput<RequiredEntries<TEntries, TKeys, TMessage>> & { [key: string]: InferOutput<TRest>; }, NonOptionalIssue | InferIssue<TSchema>>; 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; } : never
| "entries"
| "~standard"
| "~run"
| "~types"
| "entries"
| "~standard"
| "~run"
| "~types"
| "entries"
| "~standard"
| "~run"
| "~types"