Decorators

@system-inc/base-foundation · 515c140 · 2 symbols

Injects a WorkerQueue bound to the queue declared by the given WorkerQueueBinding<MessageType>. The resolved WorkerQueue<MessageType> is verified against the parameter's declared type at lint time.

InjectWorkerQueue(queueToken: WorkerQueueBinding<MessageType>): TypedParameterDecorator<WorkerQueue<MessageType>>

View source ↗

This decorator is used to register a class as a processor for a specific message type(s).

WorkerQueueProcessor(type: string | string[]): (constructor: T) => void

View source ↗