puppeteer/src
Jack Franklin b349c91e7d
fix: make $ and $$ selectors generic (#6883)
* 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
2021-03-25 11:40:34 +00:00
..
common fix: make $ and $$ selectors generic (#6883) 2021-03-25 11:40:34 +00:00
node chore: enable unit tests for Firefox on Windows (#6895) 2021-03-05 09:00:56 +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 r856583 (#6927) 2021-02-26 09:12:43 +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