Skip to main content
Version: 0.5.0

Class metadata

Represents a relation between an injectable element and its dependencies. Whenever a type service is attempted to be instantiated, it's class metadata is used to determine which services should be used as dependencies.

PropertyDescriptionType
constructorArgumentsConstructor arguments metadataClassElementMetadata
propertiesProperties metadata.Map<string | symbol, ClassElementMetadata>

ClassElementMetadata

Class element metadata can be of two different kinds:

ClassElementServiceIdMetadata

Represents a service dependency

PropertyDescriptionType
typeClass element metadata typeClassElementMetadatApi.serviceId
valueService id associated to the elementnumber | string | symbol

ClassElementTagMetadataApi

Represents services associated to a tag dependency

PropertyDescriptionType
typeClass element metadata typeClassElementMetadatApi.tag
valueTag associated to the elementnumber | string | symbol