Optional
modeThe mode of the dependency. This is set with the use of the bit-flag helpers, such as Optional.
An example of this option can be seen below:
@Service([
DatabaseService,
[TaskWorkerService, Optional() | Self()]
])
export class RootService { }
Generated using TypeDoc
A set of configuration options for a dependency of a service.