tyneq / Factory
Type Alias: Factory()<TInstance, TArgs>
Factory<
TInstance,TArgs> = (...args) =>TInstance
Defined in: src/types/utility.ts:51
A factory function that creates an instance of type TInstance given arguments of type TArgs.
Type Parameters
| Type Parameter | Default type |
|---|---|
TInstance | unknown |
TArgs extends readonly any[] | any[] |
Parameters
| Parameter | Type |
|---|---|
...args | TArgs |
Returns
TInstance