@Use
decoratorA requirement: @Use(SessionsModule) readonly runner!: ScheduleTaskRunner; — the field's
type is the interface, the decorator's argument the module wired to provide it (absent =
whichever visible module structurally satisfies it, if exactly one does). Injected before
create. The interface key comes from the generated table, which reads the annotation.
Declaration
export function Use(from?: ModuleClass)Parameters
from?
ModuleClass