puppeteer/src
Jack Franklin ff26c62647
fix: explicit HTTPRequest.resourceType type defs (#6882)
We can use the new `Lowercase` util in TS4 to avoid duplicating the type
and instead lowercase it.

Note we still need to do the work so callbacks are typed correctly:

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

})
```

Right now `request` is `any`, whereas it should be a
`puppeteer.HTTPRequest`. You can manually set the type for now, and I
will work on adding types for events so that this is done automatically
by the compiler in a future release.

Fixes #6854.
2021-02-17 10:14:38 +01:00
..
common fix: explicit HTTPRequest.resourceType type defs (#6882) 2021-02-17 10:14:38 +01:00
node fix: improve TS types for launching browsers (#6888) 2021-02-16 09:39:31 +00:00
.eslintrc.js chore: update eslint & eslint plugins (#6487) 2020-10-12 10:30:35 +01:00
api-docs-entry.ts fix: improve TS types for launching browsers (#6888) 2021-02-16 09:39:31 +00:00
environment.ts chore: shorter node checker function (#6584) 2020-11-05 07:49:58 +01:00
initialize-node.ts chore(agnostification): split up root Puppeteer class (#6504) 2020-10-13 16:19:26 +01:00
initialize-web.ts chore(agnostification): split up root Puppeteer class (#6504) 2020-10-13 16:19:26 +01:00
node-puppeteer-core.ts chore(agnostification): split up root Puppeteer class (#6504) 2020-10-13 16:19:26 +01:00
node.ts chore(agnostification): split up root Puppeteer class (#6504) 2020-10-13 16:19:26 +01:00
revisions.ts feat(chromium): roll Chromium to r848005 (#6801) 2021-02-02 17:24:10 +01:00
tsconfig.cjs.json chore: vendor Mitt & update project structure (#6209) 2020-07-14 16:57:29 +01:00
tsconfig.esm.json feat(types): expose typedefs to consumers (#6745) 2021-01-13 10:37:35 +01:00
web.ts chore(agnostification): split up root Puppeteer class (#6504) 2020-10-13 16:19:26 +01:00