Function defaults

  • Deeply applies defaults to an object.

    Type Parameters

    • T extends {}

    Parameters

    • supplied: undefined | DeepPartial<T>

      The supplied options, a DeepPartial of defaultValues.

    • defaultValues: T

      The default values to fallback on. Should represent a full copy of the options object.

    Returns T

Generated using TypeDoc