Function ReflectConstruct
- ReflectConstruct<A, R>(target: (new (...args: A) => R), argumentsList: Readonly<A>, newTarget?: (new (...args: any) => any)): R
-
Type Parameters
-
A extends readonly any[]
-
R
Parameters
-
target: (new (...args: A) => R)
-
- new (...args: A): R
-
Returns R
-
argumentsList: Readonly<A>
-
Optional
newTarget: (new (...args: any) => any)
-
- new (...args: any): any
-
Returns any
Returns R
- ReflectConstruct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any
-
Parameters
-
target: Function
-
argumentsList: ArrayLike<any>
-
Optional
newTarget: Function
Returns any
Constructs the target with the elements of specified array as the arguments and the specified constructor as the
new.target
value.