Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/valibot/mod.ts>partial

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
function partial
import { partial } from "https://deno.land/x/valibot@v0.35.0/mod.ts";

Creates a modified copy of an object schema that marks all entries as optional.

Type Parameters

TSchema extends Schema

Parameters

schema: TSchema

The schema to modify.

Returns

An object schema.

Creates a modified copy of an object schema that marks the selected entries as optional.

Type Parameters

TSchema extends Schema
TKeys extends ObjectKeys<TSchema>

Parameters

schema: TSchema

The schema to modify.

keys: TKeys

The selected entries.