Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>O.Partial

👷 TypeScript's largest type utility library, now on Deno
Latest
type alias O.Partial
import { type O } from "https://deno.land/x/ts_toolbelt_unofficial@1.1.0/mod.ts";
const { Partial } = O;

Make all fields of O optional (deeply or not)

Examples

Example 1

import {O} from 'ts-toolbelt.ts'

type L = {a: {b: {c: 2}}, b: 1}

type test0 = O.Partial<L>
type test1 = O.Partial<L, 'deep'>

Type Parameters

O extends object
optional
depth extends Depth = "flat"
definition: OptionalPart<O, depth>