Function withProperties

  • Carries out a callback during which a set of properties will be set as supplied

    Type Parameters

    • T

    Parameters

    • properties: Properties

      Properties to set during callback

    • callback: (() => T)

      Callback to execute with set properties

        • (): T
        • Returns T

    Returns T

    Return value of the supplied callback