puppeteer/test-ts-types/ts-cjs-import-cjs-output
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
..
bad.ts fix: wider compat TS types and CI checks to ensure correct type defs (#6855) 2021-02-10 12:04:36 +00:00
good.ts fix: type page event listeners correctly (#6891) 2021-03-25 11:26:35 +00:00
package.json chore: improve TS automated type tests (#6860) 2021-02-11 10:34:44 +00:00
tsconfig.json fix: wider compat TS types and CI checks to ensure correct type defs (#6855) 2021-02-10 12:04:36 +00:00