Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/merge/docs/types/index.d"

Index

Type aliases

Binary

Binary: (a: any, b: any) => any

Merge strategy.

param

target value

param

source value

returns

merged value

Type declaration

    • (a: any, b: any): any
    • Parameters

      • a: any
      • b: any

      Returns any

MergeFunction

MergeFunction: (target: any, ...source: Array<any>) => any

Merges objects into a target object.

Notes

  • The target object is mutated.
param

target object

param

source objects (i.e., objects to be merged into the target object)

returns

merged (target) object

Type declaration

    • (target: any, ...source: Array<any>): any
    • Parameters

      • target: any
      • Rest ...source: Array<any>

      Returns any

MergeStrategy

MergeStrategy: Nullary | Unary | Binary | Ternary

Merge strategy.

param

target value

param

source value

param

object key

returns

merged value

Nullary

Nullary: () => any

Merge strategy.

returns

merged value

Type declaration

    • (): any
    • Returns any

Ternary

Ternary: (a: any, b: any, key: string | symbol) => any

Merge strategy.

param

target value

param

source value

param

object key

returns

merged value

Type declaration

    • (a: any, b: any, key: string | symbol): any
    • Parameters

      • a: any
      • b: any
      • key: string | symbol

      Returns any

Unary

Unary: (a: any) => any

Merge strategy.

param

target value

returns

merged value

Type declaration

    • (a: any): any
    • Parameters

      • a: any

      Returns any

Variables

Export assignment merge

merge: Merge

Merges objects into a target object.

Notes

  • The target object is mutated.
param

target object

param

source objects (i.e., objects to be merged into the target object)

returns

merged (target) object