From f61b56cf144f18ed77f9893110b7b5b4460c5a84 Mon Sep 17 00:00:00 2001 From: Myukang <76278794+koreanddinghwan@users.noreply.github.com> Date: Wed, 18 Oct 2023 23:15:56 +0900 Subject: [PATCH] docs: change hint line --- content/techniques/events.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content/techniques/events.md b/content/techniques/events.md index fc135d70e8..21ebed5011 100644 --- a/content/techniques/events.md +++ b/content/techniques/events.md @@ -110,6 +110,8 @@ export type OnEventOptions = OnOptions & { }; ``` +> info **Hint** Read more about the [`OnOptions` options object from `eventemitter2`](https://github.com/EventEmitter2/EventEmitter2#emitteronevent-listener-options-objectboolean). + ```typescript @OnEvent('order.created', { async: true }) handleOrderCreatedEvent(payload: OrderCreatedEvent) { @@ -117,9 +119,6 @@ handleOrderCreatedEvent(payload: OrderCreatedEvent) { } ``` -> info **Hint** read more about the [`OnOptions` options object from `eventemitter2`](https://github.com/EventEmitter2/EventEmitter2#emitteronevent-listener-options-objectboolean). - - 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: ```typescript