Specifies which dependencies to request from a Container.
TypeKey <string>
TypeKey <number>
InjectableClass <User>
ComputedKey
One of:
NameKey.Provider()Inject.provider(NameKey) Copy
NameKey.Provider()Inject.provider(NameKey)
() => string
IdKey.Map(id => id.toString())Inject.map(IdKey, id => id.toString()) Copy
IdKey.Map(id => id.toString())Inject.map(IdKey, id => id.toString())
string
Inject.async(User).Lazy()Inject.lazy(Inject.async(User))// If 'User' extends 'Injectable':User.Async().Lazy() Copy
Inject.async(User).Lazy()Inject.lazy(Inject.async(User))// If 'User' extends 'Injectable':User.Async().Lazy()
() => Promise<User>
{ name: NameKey, id: IdKey.Provider(), user: User,} Copy
{ name: NameKey, id: IdKey.Provider(), user: User,}
{ name: string, id: () => number, user: User,} Copy
{ name: string, id: () => number, user: User,}
[NameKey, IdKey.Provider(), User] Copy
[NameKey, IdKey.Provider(), User]
[string, () => number, User] Copy
[string, () => number, User]
Generated using TypeDoc
Specifies which dependencies to request from a Container.
Target Types
TypeKey <string>
TypeKey <number>
InjectableClass <User>
ComputedKey
One of:
() => string
ComputedKey
One of:
string
ComputedKey
One of:
() => Promise<User>