• Type Parameters

    • T extends unknown[]
    • U

    Parameters

    • fn: ((...args: T) => U)
        • (...args): U
        • Parameters

          • Rest...args: T

          Returns U

    • wrapper: ((fn: ((...args: T) => U), ...args: T) => U)
        • (fn, ...args): U
        • Parameters

          • fn: ((...args: T) => U)
              • (...args): U
              • Parameters

                • Rest...args: T

                Returns U

          • Rest...args: T

          Returns U

    Returns ((...args: T) => U)

      • (...args): U
      • Parameters

        • Rest...args: T

        Returns U