UNPKG
@appolo/inject
Version:
latest (8.0.20)
8.0.20
8.0.19
8.0.18
8.0.16
8.0.15
8.0.14
8.0.13
8.0.12
8.0.11
8.0.10
8.0.9
8.0.8
8.0.7
8.0.6
8.0.5
8.0.4
8.0.3
8.0.2
8.0.1
dependency injection for node js
github.com/shmoop207/appolo-inject
shmoop207/appolo-inject
@appolo/inject
/
lib
/
interfaces
/
IFactory.ts
6 lines
(4 loc)
•
189 B
text/typescript
View Raw
1
2
3
4
5
6
export
interface
IFactory
<T> {
get
(): T |
Promise
<T> }
export
type
FactoryFn
<T
extends
new
(...
args
:
any
) =>
any
> = (
(
...
args
:
ConstructorParameters
<T>
) =>
InstanceType
<T>) & {
type
:T}