InjectionToken
Defined in: src/types.ts:24
A typed token for interfaces and values, created with createToken.
Resolving it infers T, so no generic argument is needed at the call site.
Type Parameters
Section titled “Type Parameters”T = unknown
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new InjectionToken<
T>(name):InjectionToken<T>
Defined in: src/types.ts:30
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”InjectionToken<T>
Properties
Section titled “Properties”__type?
Section titled “__type?”
readonlyoptional__type?:T
Defined in: src/types.ts:26
Phantom field: carries T at the type level only.
readonlyname:string
Defined in: src/types.ts:29
Methods
Section titled “Methods”toString()
Section titled “toString()”toString():
string
Defined in: src/types.ts:33
Returns
Section titled “Returns”string