chore(types): generate our own d.ts file from api.md (#3744)

Generate `//index.d.ts` file with precise typescript definitions for all of the
Puppeteer API.
This commit is contained in:
Joel Einbinder
2019-01-28 18:12:45 -05:00
committed by Andrey Lushnikov
parent 63d9ac4df8
commit f2c968fdb8
13 changed files with 706 additions and 75 deletions

View File

@@ -46,7 +46,6 @@ class Page extends EventEmitter {
await client.send('Page.enable');
const {frameTree} = await client.send('Page.getFrameTree');
const page = new Page(client, target, frameTree, ignoreHTTPSErrors, screenshotTaskQueue);
await Promise.all([
client.send('Target.setAutoAttach', {autoAttach: true, waitForDebuggerOnStart: false, flatten: true}),
client.send('Page.setLifecycleEventsEnabled', { enabled: true }),