Skip to content
Buy me a coffee

ServiceDescriptor

Defined in: src/types.ts:66

A registration, as stored by ServiceCollection.

T = unknown

readonly dependencies: readonly Token<unknown>[]

Defined in: src/types.ts:73


readonly optional factory?: ServiceFactory<T>

Defined in: src/types.ts:70


readonly optional implementation?: Newable<T, any[]>

Defined in: src/types.ts:69


readonly optional key?: ServiceKey

Defined in: src/types.ts:74


readonly lifetime: ServiceLifetime

Defined in: src/types.ts:68


readonly token: Token<T>

Defined in: src/types.ts:67


readonly optional value?: T

Defined in: src/types.ts:72

Present (possibly undefined/null) for value registrations; check with 'value' in descriptor.