Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/object/addPropertiesToObjectRecursivelyBasedOnPathMap

Index

Functions

Const addPropertiesToObjectRecursivelyBasedOnPathMap

  • addPropertiesToObjectRecursivelyBasedOnPathMap<T1, T2>(newPropertyKeyToAdd: NonNullable<string>, objectPathMap: T1, objectToAddNewPropertyTo: T2, parentProperty: NonNullable<string> | keyof T2): T2 | T2[keyof T2][]
  • Type parameters

    • T1: Map<string, string>

    • T2: Record<string, unknown>

    Parameters

    • newPropertyKeyToAdd: NonNullable<string>
    • objectPathMap: T1
    • objectToAddNewPropertyTo: T2
    • parentProperty: NonNullable<string> | keyof T2

    Returns T2 | T2[keyof T2][]

Generated using TypeDoc