@proto-kit/common • Docs
Documentation / @proto-kit/common / injectAlias
Function: injectAlias()
injectAlias(
aliases): (target) =>void
Attaches metadata to the class that the ModuleContainer can pick up and inject this class in the DI container under the specified aliases. This method supports inheritance, therefore also gets aliases defined on superclasses
Parameters
• aliases: string[]
Returns
Function
Parameters
• target: TypedClass<unknown>
Returns
void