ff26c62647
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. |
||
---|---|---|
.. | ||
common | ||
node | ||
.eslintrc.js | ||
api-docs-entry.ts | ||
environment.ts | ||
initialize-node.ts | ||
initialize-web.ts | ||
node-puppeteer-core.ts | ||
node.ts | ||
revisions.ts | ||
tsconfig.cjs.json | ||
tsconfig.esm.json | ||
web.ts |