Function mergeBindings

  • Merges provided bindings with default bindings. If both are functions, wraps them so both are called.

    Type Parameters

    • T extends object

    Parameters

    • provided: T = ...

      The provided bindings.

    • defaults: Partial<T> = {}

      The default bindings.

    Returns T

    The merged bindings object.