Type Alias: Factory<D, S, A, R>
Factory<
D,S,A,R> = ((...args) =>R) | (new (...args) =>R)
Defined in: src/types.ts:125
Creates a service from its resolved dependencies: a function, or a class (called with new). A is a registry's own additions (see ResolveDependency); R is what it must produce (the tag's type, for a key built by a tag).
Type Parameters
D
D extends readonly unknown[]
S
S
A
A = { }
R
R = unknown