b349c91e7d
* fix: make `$` and `$$` selectors generic This means, much like TS's in built `querySelector` type, you can now do: ```ts const listItems = page.$$<HTMLLIElement>('ul li'); ``` And/or: ```ts const h2 = page.$<HTMLHeadingElement>('h2'); ``` And the return value will be of type `ElementHandle<T>|null`, where `T` is the type you provided. By default `T` is an `Element`, so you don't have to provide this if you don't care as a consumer about the exact type you get back. * chore: fix test assertions |
||
---|---|---|
.. | ||
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 |