@gabliam/amqp
Version:
amqp plugin for gabliam
37 lines (36 loc) • 734 B
TypeScript
/**
* 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;