fix(lint): property waitForResponse type (#4582)

This commit is contained in:
Joel Einbinder 2020-12-03 10:43:34 -08:00 committed by GitHub
parent bc701629db
commit 5a537413c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.