Options
All
  • Public
  • Public/Protected
  • All
Menu

Type aliases

Type aliases

Partial

Partial<O, depth>: OptionalPart<O, depth>

Make all fields of O optional (deeply or not)

Type parameters

  • O: object

    to make optional

  • depth: Depth

    (?='flat') 'deep' to do it deeply

returns

Object

example

import {O} from 'ts-toolbelt'

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

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

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.