chore: migrate away from Node's EventEmitter (#5979)

This commit is contained in:
Jack Franklin
2020-06-15 11:52:19 +01:00
committed by GitHub
parent 6e060ce0fd
commit b659969a38
30 changed files with 752 additions and 32 deletions

View File

@@ -0,0 +1,27 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [EventEmitter](./puppeteer.eventemitter.md) &gt; [emit](./puppeteer.eventemitter.emit.md)
## EventEmitter.emit() method
Emit an event and call any associated listeners.
<b>Signature:</b>
```typescript
emit(event: EventType, eventData?: any): boolean;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| event | EventType | the event you'd like to emit |
| eventData | any | any data you'd like to emit with the event |
<b>Returns:</b>
boolean
`true` if there are any listeners, `false` if there are not.