Skip to content

Commit f61b56c

Browse files
docs: change hint line
1 parent ec846c7 commit f61b56c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

content/techniques/events.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,15 @@ export type OnEventOptions = OnOptions & {
110110
};
111111
```
112112

113+
> info **Hint** Read more about the [`OnOptions` options object from `eventemitter2`](https://github.com/EventEmitter2/EventEmitter2#emitteronevent-listener-options-objectboolean).
114+
113115
```typescript
114116
@OnEvent('order.created', { async: true })
115117
handleOrderCreatedEvent(payload: OrderCreatedEvent) {
116118
// handle and process "OrderCreatedEvent" event
117119
}
118120
```
119121

120-
> info **Hint** read more about the [`OnOptions` options object from `eventemitter2`](https://github.com/EventEmitter2/EventEmitter2#emitteronevent-listener-options-objectboolean).
121-
122-
123122
To use namespaces/wildcards, pass the `wildcard` option into the `EventEmitterModule#forRoot()` method. When namespaces/wildcards are enabled, events can either be strings (`foo.bar`) separated by a delimiter or arrays (`['foo', 'bar']`). The delimiter is also configurable as a configuration property (`delimiter`). With namespaces feature enabled, you can subscribe to events using a wildcard:
124123

125124
```typescript

0 commit comments

Comments
 (0)