Parameter decorator that injects all instances provided by the registrations associated with the given class.
Throws an error if:
Parameter decorator that injects all values provided by the registrations associated with the given token.
Allows referencing a token declared later in the file by using the tokenRef helper function.
class Wizard { constructor(@InjectAll(tokenRef(() => Wand)) readonly wands: Wand[]) {}}// Other code...class Wand {} Copy
class Wizard { constructor(@InjectAll(tokenRef(() => Wand)) readonly wands: Wand[]) {}}// Other code...class Wand {}
Parameter decorator that injects all instances provided by the registrations associated with the given class.
Throws an error if: