Skip to content

Commit 1c022a1

Browse files
docs: minor fixes
1 parent f2a8e39 commit 1c022a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/techniques/events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ constructor(private eventEmitter: EventEmitter2) {}
6060

6161
> info **Hint** Import the `EventEmitter2` from the `@nestjs/event-emitter` package.
6262
63-
Then use it in a class as follows.
63+
Then use it in a class as follows:
6464

6565
```typescript
6666
this.eventEmitter.emit(
@@ -102,7 +102,7 @@ handleOrderEvents(payload: OrderCreatedEvent | OrderRemovedEvent | OrderUpdatedE
102102
```
103103

104104
Note that such a wildcard only applies to one block. The argument `order.*` will match, for example, the events `order.created` and `order.shipped` but not `order.delayed.out_of_stock`. In order to listen to such events,
105-
use the `multilevel wildcard` pattern (i.e, `**`), described in the `EventEmitter2` package.
105+
use the `multilevel wildcard` pattern (i.e, `**`), described in the `EventEmitter2` [documentation](https://github.com/EventEmitter2/EventEmitter2#multi-level-wildcards).
106106

107107
With this pattern, you can, for example, create an event listener that catches all events.
108108

0 commit comments

Comments
 (0)