* Utility type for a class which can be called in addion to being used as a constructor.
| 2 | * Utility type for a class which can be called in addion to being used as a constructor. |
| 3 | */ |
| 4 | interface Invokeable<Args extends Array<any>, Instance> { |
| 5 | (...args: Args): Instance; |
| 6 | new (...args: Args): Instance; |
| 7 | } |
| 8 | |
| 9 | /** |
| 10 | * Wraps a constructor to not need the `new` keyword using a proxy. |
nothing calls this directly
no outgoing calls
no test coverage detected