UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

97 lines (48 loc) 1.59 kB
--- lang: en title: 'API docs: core.lifecycleobserverregistry.notifygroups' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/core permalink: /doc/en/lb4/apidocs.core.lifecycleobserverregistry.notifygroups.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/core](./core.md) &gt; [LifeCycleObserverRegistry](./core.lifecycleobserverregistry.md) &gt; [notifyGroups](./core.lifecycleobserverregistry.notifygroups.md) ## LifeCycleObserverRegistry.notifyGroups() method Emit events to the observer groups **Signature:** ```typescript protected notifyGroups(events: (keyof LifeCycleObserver)[], groups: LifeCycleObserverGroup[], reverse?: boolean): Promise<void>; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> events </td><td markdown="1"> (keyof [LifeCycleObserver](./core.lifecycleobserver.md)<!-- -->)\[\] </td><td markdown="1"> Event names </td></tr> <tr><td markdown="1"> groups </td><td markdown="1"> [LifeCycleObserverGroup](./core.lifecycleobservergroup.md)<!-- -->\[\] </td><td markdown="1"> Observer groups </td></tr> <tr><td markdown="1"> reverse </td><td markdown="1"> boolean </td><td markdown="1"> _(Optional)_ </td></tr> </tbody></table> **Returns:** Promise&lt;void&gt;