* Creates a new function that constructs an instance of the given constructor function with the provided arguments. * * @param func - The constructor function to be wrapped and called. * @returns A new function that constructs an instance of the given constructor function with the provided argume
( Func: new (...args: any[]) => T )
| 92 | * @returns A new function that constructs an instance of the given constructor function with the provided arguments. |
| 93 | */ |
| 94 | function unconstruct<T>( |
| 95 | Func: new (...args: any[]) => T |
| 96 | ): (...args: any[]) => T { |
| 97 | return (...args: any[]): T => construct(Func, args); |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Add properties to a lookup table |
no outgoing calls
no test coverage detected
searching dependent graphs…