playwright/packages/playwright-core
Stephen Li 0b1b718afc
feat(core): type addInitScript function arg (#17651)
Allows autocomplete on the arg passed to the init script

```ts
await page.addInitScript((arg) => {
    window.localStorage.setItem('init_user_state', JSON.stringify(arg.initUserState)) // arg was previously 'any'
}, {
    initUserState: { foo: 'bar' },
})
```
2022-10-05 09:08:30 -07:00
..
2022-10-05 08:45:10 -07:00
2021-10-11 16:52:17 +02:00
2021-10-11 16:52:17 +02:00
2022-08-15 18:10:04 +02:00

playwright-core

This package contains the no-browser flavor of Playwright.