chore: EventEmitter should mimic NodeJS' one (#10241)

This commit is contained in:
Nikolay Vitkov
2023-05-24 17:57:56 +02:00
committed by GitHub
parent 557ec24cfc
commit 0cac94c0d6
19 changed files with 53 additions and 53 deletions

View File

@@ -10,7 +10,7 @@ Like `on` but the listener will only be fired once and then it will be removed.
```typescript
class EventEmitter {
once(event: EventType, handler: Handler<any>): EventEmitter;
once(event: EventType, handler: Handler<any>): this;
}
```
@@ -23,6 +23,6 @@ class EventEmitter {
**Returns:**
[EventEmitter](./puppeteer.eventemitter.md)
this
`this` to enable you to chain method calls.