From 6da7e702325e641af943e06d98c3c59c7e27461d Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Sat, 1 May 2021 10:58:23 +0200 Subject: [PATCH] chore: regenerate types after non-clean merge Follow-up to #6379 --- types/types.d.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/types/types.d.ts b/types/types.d.ts index 23dfe075a63f6..61c9dc5f7205d 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -380,11 +380,11 @@ export interface Page { * An example of handling `console` event: * * ```js - * page.on('console', msg => { + * page.on('console', async msg => { * for (let i = 0; i < msg.args().length; ++i) * console.log(`${i}: ${await msg.args()[i].jsonValue()}`); * }); - * page.evaluate(() => console.log('hello', 5, {foo: 'bar'})); + * await page.evaluate(() => console.log('hello', 5, {foo: 'bar'})); * ``` * */ @@ -554,11 +554,11 @@ export interface Page { * An example of handling `console` event: * * ```js - * page.on('console', msg => { + * page.on('console', async msg => { * for (let i = 0; i < msg.args().length; ++i) * console.log(`${i}: ${await msg.args()[i].jsonValue()}`); * }); - * page.evaluate(() => console.log('hello', 5, {foo: 'bar'})); + * await page.evaluate(() => console.log('hello', 5, {foo: 'bar'})); * ``` * */ @@ -728,11 +728,11 @@ export interface Page { * An example of handling `console` event: * * ```js - * page.on('console', msg => { + * page.on('console', async msg => { * for (let i = 0; i < msg.args().length; ++i) * console.log(`${i}: ${await msg.args()[i].jsonValue()}`); * }); - * page.evaluate(() => console.log('hello', 5, {foo: 'bar'})); + * await page.evaluate(() => console.log('hello', 5, {foo: 'bar'})); * ``` * */ @@ -902,11 +902,11 @@ export interface Page { * An example of handling `console` event: * * ```js - * page.on('console', msg => { + * page.on('console', async msg => { * for (let i = 0; i < msg.args().length; ++i) * console.log(`${i}: ${await msg.args()[i].jsonValue()}`); * }); - * page.evaluate(() => console.log('hello', 5, {foo: 'bar'})); + * await page.evaluate(() => console.log('hello', 5, {foo: 'bar'})); * ``` * */ @@ -1076,11 +1076,11 @@ export interface Page { * An example of handling `console` event: * * ```js - * page.on('console', msg => { + * page.on('console', async msg => { * for (let i = 0; i < msg.args().length; ++i) * console.log(`${i}: ${await msg.args()[i].jsonValue()}`); * }); - * page.evaluate(() => console.log('hello', 5, {foo: 'bar'})); + * await page.evaluate(() => console.log('hello', 5, {foo: 'bar'})); * ``` * */ @@ -2937,11 +2937,11 @@ export interface Page { * An example of handling `console` event: * * ```js - * page.on('console', msg => { + * page.on('console', async msg => { * for (let i = 0; i < msg.args().length; ++i) * console.log(`${i}: ${await msg.args()[i].jsonValue()}`); * }); - * page.evaluate(() => console.log('hello', 5, {foo: 'bar'})); + * await page.evaluate(() => console.log('hello', 5, {foo: 'bar'})); * ``` * */