When we want to use TypeScript interfaces we cannot use them as injection tokens, because they are removed after the compilation. As a workaround for this the user needs to create a token (Symbol) for each interface he defines, to be later used for injection. Because classes can implement multiple interfaces, we need a way to specify multiple tokens.
Goal
Make an implementation of @Qualifier decorator that can be used together with the @Component decorator for specifying the alias injection tokens. Example:
Background
When we want to use TypeScript interfaces we cannot use them as injection tokens, because they are removed after the compilation. As a workaround for this the user needs to create a token (Symbol) for each interface he defines, to be later used for injection. Because classes can implement multiple interfaces, we need a way to specify multiple tokens.
Goal
Make an implementation of @Qualifier decorator that can be used together with the @Component decorator for specifying the alias injection tokens. Example: