Skip to content

Commit 49bda5c

Browse files
committed
feature(microservices): add interface for pattern
1 parent 5ddd8cb commit 49bda5c

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

packages/microservices/interfaces/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ export * from './microservice-configuration.interface';
77
export * from './packet.interface';
88
export * from './pattern-metadata.interface';
99
export * from './request-context.interface';
10+
export * from './pattern.interface';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
export type MsFundamentalPattern = string | number;
3+
4+
export interface MsObjectPattern {
5+
[key: string]: MsFundamentalPattern | MsObjectPattern;
6+
}
7+
8+
export type MsPattern = MsObjectPattern | MsFundamentalPattern;

0 commit comments

Comments
 (0)