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