UNPKG

486 BTypeScriptView Raw
1import { Transport } from '../enums';
2/**
3 * Subscribes to incoming events which fulfils chosen pattern.
4 *
5 * @publicApi
6 */
7export declare const EventPattern: {
8 <T = string>(metadata?: T): MethodDecorator;
9 <T = string>(metadata?: T, transport?: Transport | symbol): MethodDecorator;
10 <T = string>(metadata?: T, extras?: Record<string, any>): MethodDecorator;
11 <T = string>(metadata?: T, transport?: Transport | symbol, extras?: Record<string, any>): MethodDecorator;
12};