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

@@ -11,7 +11,7 @@ class Page {
once<K extends keyof PageEventObject>(
eventName: K,
handler: (event: PageEventObject[K]) => void
): EventEmitter;
): this;
}
```
@@ -24,4 +24,4 @@ class Page {
**Returns:**
[EventEmitter](./puppeteer.eventemitter.md)
this