Function fpRelaxedMerge

Exactly the same as fpShallowMerge but the types are relaxed to accept undefined and null. You may want to use this version when the target object is potentially undefined but you know that the to-be merged objects will result in a full object. This version is harder for TypeScript to infer the proper type, so you may need to explicitly pass <T>.

  • Type Parameters

    • T

    Parameters

    • ...objects: (
          | nil
          | {
              [K in string
              | number
              | symbol]?: (Resolvable<T[K], [T[K], K]> | undefined)
          }
      )[]

    Returns (obj: nil | T) => T & {}