import { type SchemaWithPartialAsync } from "https://deno.land/x/valibot@v0.35.0/src/index.ts";
Schema with partial type.
Type Parameters
TKeys extends ObjectKeys<TSchema> | undefined
definition: TSchema extends ObjectSchemaAsync<infer TEntries, ErrorMessage<ObjectIssue> | undefined> | StrictObjectSchemaAsync<infer TEntries, ErrorMessage<StrictObjectIssue> | undefined> ? Omit<TSchema, "entries" | "_run" | "_types"> & { readonly entries: PartialEntries<TEntries, TKeys>; readonly _types?: { readonly input: InferObjectInput<PartialEntries<TEntries, TKeys>>; readonly output: InferObjectOutput<PartialEntries<TEntries, TKeys>>; readonly issue: InferIssue<TSchema>; }; _run(dataset: Dataset<unknown, never>, config: Config<InferIssue<TSchema>>): Promise<Dataset<InferObjectOutput<PartialEntries<TEntries, TKeys>>, InferIssue<TSchema>>>; } : TSchema extends LooseObjectSchemaAsync<infer TEntries, ErrorMessage<LooseObjectIssue> | undefined> ? Omit<TSchema, "entries" | "_run" | "_types"> & { readonly entries: PartialEntries<TEntries, TKeys>; readonly _types?: { readonly input: InferObjectInput<PartialEntries<TEntries, TKeys>> & { [key: string]: unknown; }; readonly output: InferObjectOutput<PartialEntries<TEntries, TKeys>> & { [key: string]: unknown; }; readonly issue: InferIssue<TSchema>; }; _run(dataset: Dataset<unknown, never>, config: Config<InferIssue<TSchema>>): Promise<Dataset<InferObjectOutput<PartialEntries<TEntries, TKeys>> & { [key: string]: unknown; }, InferIssue<TSchema>>>; } : TSchema extends ObjectWithRestSchemaAsync<infer TEntries, infer TRest, ErrorMessage<ObjectWithRestIssue> | undefined> ? Omit<TSchema, "entries" | "_run" | "_types"> & { readonly entries: PartialEntries<TEntries, TKeys>; readonly _types?: { readonly input: InferObjectInput<PartialEntries<TEntries, TKeys>> & { [key: string]: InferInput<TRest>; }; readonly output: InferObjectOutput<PartialEntries<TEntries, TKeys>> & { [key: string]: InferOutput<TRest>; }; readonly issue: InferIssue<TSchema>; }; _run(dataset: Dataset<unknown, never>, config: Config<InferIssue<TSchema>>): Promise<Dataset<InferObjectOutput<PartialEntries<TEntries, TKeys>> & { [key: string]: InferOutput<TRest>; }, InferIssue<TSchema>>>; } : never