Options
All
  • Public
  • Public/Protected
  • All
Menu

Type aliases

Type aliases

Merge

Merge<L, L1, depth, ignore, fill>: Cast<Merge<L, L1, depth, ignore, fill>, List>

Accurately merge the fields of L with the ones of L1. It is equivalent to the spread operator in JavaScript. [[Union]]s and Optional fields will be handled gracefully.

(⚠️ needs --strictNullChecks enabled)

Type parameters

  • L: List

    to complete

  • L1: List

    to copy from

  • depth: Depth

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

  • ignore: object

    (?=BuiltIn) types not to merge

  • fill: any

    (?=undefined) types of O to be replaced with ones of O1

returns

List

example


  • 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.