Parameter decorator that injects all values provided by the registrations associated with the given token.
This overload allows referencing a token declared later in the file by using the tokenRef helper function.
Throws an error if:
Example:
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: