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

@@ -8,7 +8,7 @@ sidebar_label: CommonEventEmitter.on
```typescript
interface CommonEventEmitter {
on(event: EventType, handler: Handler): CommonEventEmitter;
on(event: EventType, handler: Handler): this;
}
```
@@ -21,4 +21,4 @@ interface CommonEventEmitter {
**Returns:**
[CommonEventEmitter](./puppeteer.commoneventemitter.md)
this