Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/mod.ts>MarkOptional

The modular and type safe schema library for validating structural data 🤖
Latest
type alias MarkOptional
Re-export
import { type MarkOptional } from "https://deno.land/x/valibot@v1.0.0-beta.5/mod.ts";

Marks specific keys as optional.

Type Parameters

TObject
TKeys extends keyof TObject
definition: Omit<TObject, TKeys> & Partial<Pick<TObject, TKeys>>