There should be a type alias for types that can be used as an injection token #39792
Labels
area: core
Issues related to the framework runtime
feature
Issue that requests a new feature
state: has PR
Milestone
馃殌 feature request
Relevant Package
This feature request is for
@angular/core
Description
There should be a type alias defined for values that can be used as an "injection token". Today I think that is roughly
Type<T>|AbstractType<T>|InjectionToken<T>
. This type is repeated all over and defining a consistent alias would make it easier to update in the future and simplify code passing tokens around.Forked from #37958
Describe the solution you'd like
type ????Token<T> = Type<T>|AbstractType<T>|InjectionToken<T>
Not really sure on a name
The text was updated successfully, but these errors were encountered: