puppeteer/test-ts-types
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
..
js-cjs-import-cjs-output chore: improve TS automated type tests (#6860) 2021-02-11 10:34:44 +00:00
js-cjs-import-esm-output chore: improve TS automated type tests (#6860) 2021-02-11 10:34:44 +00:00
js-esm-import-cjs-output chore: improve TS automated type tests (#6860) 2021-02-11 10:34:44 +00:00
js-esm-import-esm-output chore: improve TS automated type tests (#6860) 2021-02-11 10:34:44 +00:00
ts-cjs-import-cjs-output fix: type page event listeners correctly (#6891) 2021-03-25 11:26:35 +00:00
ts-esm-import-cjs-output chore: improve TS automated type tests (#6860) 2021-02-11 10:34:44 +00:00
ts-esm-import-esm-output chore: improve TS automated type tests (#6860) 2021-02-11 10:34:44 +00:00