From 5a537413c903797c69537018b30e3226a8945a6d Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Thu, 3 Dec 2020 10:43:34 -0800 Subject: [PATCH] fix(lint): property waitForResponse type (#4582) --- docs-src/api-body.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs-src/api-body.md b/docs-src/api-body.md index e3c4e09528..b7ef5b55ae 100644 --- a/docs-src/api-body.md +++ b/docs-src/api-body.md @@ -1861,7 +1861,7 @@ await page.waitForRequest(request => request.url().searchParams.get('foo') === ' ``` #### page.waitForResponse(urlOrPredicate[, options]) -- `urlOrPredicate` <[string]|[RegExp]|[Function]> Request URL string, regex or predicate receiving [Response] object. +- `urlOrPredicate` <[string]|[RegExp]|[function]\([Response]\):[boolean]> Request URL string, regex or predicate receiving [Response] object. - `options` <[Object]> Optional waiting parameters - `timeout` <[number]> Maximum wait time in milliseconds, defaults to 30 seconds, pass `0` to disable the timeout. The default value can be changed by using the [browserContext.setDefaultTimeout(timeout)](#browsercontextsetdefaulttimeouttimeout) or [page.setDefaultTimeout(timeout)](#pagesetdefaulttimeouttimeout) methods. - returns: <[Promise]<[Response]>> Promise which resolves to the matched response.