tyneq / Constructor
Type Alias: Constructor()<TInstance, TArgs>
Constructor<
TInstance,TArgs> = (...args) =>TInstance
Defined in: src/types/utility.ts:18
A constructor type that can be instantiated with new.
Type Parameters
| Type Parameter | Default type |
|---|---|
TInstance | unknown |
TArgs extends readonly any[] | any[] |
Parameters
| Parameter | Type |
|---|---|
...args | TArgs |
Returns
TInstance