Function wrapCtor

  • Adapt a constructor into a callable function.

    Type Parameters

    • TArgs extends unknown[]

    • T

    Parameters

    • ctor: (new (...args) => T)
        • new (...args): T
        • Parameters

          • Rest ...args: TArgs

          Returns T

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

      • (...args): T
      • Parameters

        • Rest ...args: TArgs

        Returns T

Generated using TypeDoc