- construct<Constructor>(constructor: Constructor): ((...constructorArguments: ConstructorParameters<Constructor>) => InstanceType<Constructor>)
-
Type Parameters
-
Constructor extends GenericConstructor<ReadOnlyArray<never>, unknown>
Returns ((...constructorArguments: ConstructorParameters<Constructor>) => InstanceType<Constructor>)
-
- (...constructorArguments: ConstructorParameters<Constructor>): InstanceType<Constructor>
-
Parameters
-
Rest
...constructorArguments: ConstructorParameters<Constructor>
Returns InstanceType<Constructor>
Creates a new instance of the given constructor with the given arguments.
Example
Returns
Curried function with
constructor
in context.