feat(types): improve page.evaluate types (#6193)

This commit is contained in:
Jack Franklin
2020-07-10 11:52:13 +01:00
committed by GitHub
parent 31309b0e20
commit 9b3005c105
32 changed files with 216 additions and 106 deletions

View File

@@ -81,7 +81,7 @@ describe('Target', function () {
)
.then((target) => target.page()),
page.evaluate(
(url) => window.open(url),
(url: string) => window.open(url),
server.CROSS_PROCESS_PREFIX + '/empty.html'
),
]);
@@ -215,7 +215,7 @@ describe('Target', function () {
// Open a new page. Use window.open to connect to the page later.
await Promise.all([
page.evaluate(
(url) => window.open(url),
(url: string) => window.open(url),
server.PREFIX + '/one-style.html'
),
server.waitForRequest('/one-style.css'),