Event Emitter built-in plugin
Import
typescript
import event from '@biruni/built-in/event';
Alternative Import Syntax
typescript
import event from '@biruni/built-in/event/mod';
typescript
import { event } from '@biruni/built-in/mod';
typescript
import { event } from '@biruni/built-in';
Also it's available in biruni
as battery-included
typescript
import { event } from 'biruni';
typescript
import { event } from 'biruni/built-in';
typescript
import { event } from 'biruni/event';
typescript
import event from 'biruni/event';
TIP
The event
plugin also aliased to EventEmitterPlugin
named export
Plug and Use
typescript
.plug(event())
Or also can be use aliased name, by:
typescript
.plug(EventEmitterPlugin())
Signature
typescript
const event = () => () => Context.Synchronizer;
Information
Type | 🧩 Synchronizer |
Polyfill-inlcuded | 🟢 INCLUDED read more |
SSR Supportation | 🟢 YES |
Cross-Runtime | 🟢 INCLUDED read more |
Implemented Of | 🟢 Node.js EventEmitter API |