ServiceDescriptor
Defined in: src/types.ts:66
A registration, as stored by ServiceCollection.
Type Parameters
Section titled “Type Parameters”T = unknown
Properties
Section titled “Properties”dependencies
Section titled “dependencies”
readonlydependencies: readonlyToken<unknown>[]
Defined in: src/types.ts:73
factory?
Section titled “factory?”
readonlyoptionalfactory?:ServiceFactory<T>
Defined in: src/types.ts:70
implementation?
Section titled “implementation?”
readonlyoptionalimplementation?:Newable<T,any[]>
Defined in: src/types.ts:69
readonlyoptionalkey?:ServiceKey
Defined in: src/types.ts:74
lifetime
Section titled “lifetime”
readonlylifetime:ServiceLifetime
Defined in: src/types.ts:68
readonlytoken:Token<T>
Defined in: src/types.ts:67
value?
Section titled “value?”
readonlyoptionalvalue?:T
Defined in: src/types.ts:72
Present (possibly undefined/null) for value registrations; check with 'value' in descriptor.