Options
All
  • Public
  • Public/Protected
  • All
Menu

Type aliases

Type aliases

Partial

Partial<L, depth>: Cast<Partial<L, depth>, List>

Make all fields of O optional (deeply or not)

Type parameters

  • L: List

    to make optional

  • depth: Depth

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

returns

List

example

import {O} from 'ts-toolbelt'

type L = [1, 2, 3, [4, [5]]]

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.