Skip to content

Commit 6da7e70

Browse files
committed
chore: regenerate types after non-clean merge
Follow-up to #6379
1 parent af92565 commit 6da7e70

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

types/types.d.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -380,11 +380,11 @@ export interface Page {
380380
* An example of handling `console` event:
381381
*
382382
* ```js
383-
* page.on('console', msg => {
383+
* page.on('console', async msg => {
384384
* for (let i = 0; i < msg.args().length; ++i)
385385
* console.log(`${i}: ${await msg.args()[i].jsonValue()}`);
386386
* });
387-
* page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));
387+
* await page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));
388388
* ```
389389
*
390390
*/
@@ -554,11 +554,11 @@ export interface Page {
554554
* An example of handling `console` event:
555555
*
556556
* ```js
557-
* page.on('console', msg => {
557+
* page.on('console', async msg => {
558558
* for (let i = 0; i < msg.args().length; ++i)
559559
* console.log(`${i}: ${await msg.args()[i].jsonValue()}`);
560560
* });
561-
* page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));
561+
* await page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));
562562
* ```
563563
*
564564
*/
@@ -728,11 +728,11 @@ export interface Page {
728728
* An example of handling `console` event:
729729
*
730730
* ```js
731-
* page.on('console', msg => {
731+
* page.on('console', async msg => {
732732
* for (let i = 0; i < msg.args().length; ++i)
733733
* console.log(`${i}: ${await msg.args()[i].jsonValue()}`);
734734
* });
735-
* page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));
735+
* await page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));
736736
* ```
737737
*
738738
*/
@@ -902,11 +902,11 @@ export interface Page {
902902
* An example of handling `console` event:
903903
*
904904
* ```js
905-
* page.on('console', msg => {
905+
* page.on('console', async msg => {
906906
* for (let i = 0; i < msg.args().length; ++i)
907907
* console.log(`${i}: ${await msg.args()[i].jsonValue()}`);
908908
* });
909-
* page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));
909+
* await page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));
910910
* ```
911911
*
912912
*/
@@ -1076,11 +1076,11 @@ export interface Page {
10761076
* An example of handling `console` event:
10771077
*
10781078
* ```js
1079-
* page.on('console', msg => {
1079+
* page.on('console', async msg => {
10801080
* for (let i = 0; i < msg.args().length; ++i)
10811081
* console.log(`${i}: ${await msg.args()[i].jsonValue()}`);
10821082
* });
1083-
* page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));
1083+
* await page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));
10841084
* ```
10851085
*
10861086
*/
@@ -2937,11 +2937,11 @@ export interface Page {
29372937
* An example of handling `console` event:
29382938
*
29392939
* ```js
2940-
* page.on('console', msg => {
2940+
* page.on('console', async msg => {
29412941
* for (let i = 0; i < msg.args().length; ++i)
29422942
* console.log(`${i}: ${await msg.args()[i].jsonValue()}`);
29432943
* });
2944-
* page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));
2944+
* await page.evaluate(() => console.log('hello', 5, {foo: 'bar'}));
29452945
* ```
29462946
*
29472947
*/

0 commit comments

Comments
 (0)