UNPKG

@gabliam/amqp

Version:
37 lines (36 loc) 734 B
/** * Type of the `CUnit` decorator / constructor function. */ export interface CUnitDecorator { /** * Decorator that marks a class to use a specific connection * * @usageNotes * * ```typescript * @CUnit('test') * @RabbitController('/') * class SampleController { * @RabbitListener('test') * hello() { * console.log('Hello'); * } * } * ``` */ (name: string): ClassDecorator; /** * see the `@CUnit` decorator. */ new (name: string): any; } /** * `CUnit` decorator and metadata. */ export interface CUnit { /** * Name of the connection */ name: string; } export declare const CUnit: CUnitDecorator;