puppeteer/utils/doclint/check_public_api
Jack Franklin 866d34ee11
fix: type page event listeners correctly (#6891)
This PR fixes the fact that currently if you have:

```ts
page.on('request', request => {

})
```

Then `request` will be typed as `any`. We can fix this by defining an
interface of event name => callback argument type, and looking that up
when you call `page.on`.

Also includes a drive-by fix to ensure we convert response headers to
strings, and updates the types accordingly.
2021-03-25 11:26:35 +00:00
..
Documentation.js docs: replace @return with @returns (#6006) 2020-06-12 12:38:24 +02:00
index.js fix: type page event listeners correctly (#6891) 2021-03-25 11:26:35 +00:00
JSBuilder.js chore: use devtools-protocol package (#6172) 2020-07-10 11:51:52 +01:00
MDBuilder.js docs: replace @return with @returns (#6006) 2020-06-12 12:38:24 +02:00