-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve type of predicate function #6997
Conversation
From the DefinitelyTyped @types/puppeteer package: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/c43191a8f7a7d2a47bbff0bc3a7d95ecc64d2269/types/puppeteer/index.d.ts#L1883-L1885
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement, thank you!
No problem! Do I need to fix something so that it auto-merges? The tests seem like they flaked out... |
@mathiasbynens @jackfranklin do you have any guidance for these reconnect timeouts? Still failing after I merged
|
Might be a FF nightly test issue. @mathiasbynens wdyt? We could disable the test if it continues to flake. The changes in this PR are only TS types so shouldn't cause this issue. |
Similar, but slightly different error this time:
|
@whimboo would you mind taking a look at this PR? It seems to always hit some FF issue around timeouts. I'm not sure if this is a problem with a recent FF nightly build, or some other issue, but it seems to happen consistently at the moment on this and other PRs. |
@jackfranklin Since this PR is unrelated to the test failures, maybe this PR could be merged in the meantime? |
@jackfranklin yes this is a known issue with Firefox Nightly at the moment. See https://bugzilla.mozilla.org/show_bug.cgi?id=1701168. Also you disabled this test for now via #7062. @karlhorky please rebase against main and push again. The tests should pass now. |
Nice, thanks @jackfranklin and @whimboo ! |
From the DefinitelyTyped @types/puppeteer package: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/c43191a8f7a7d2a47bbff0bc3a7d95ecc64d2269/types/puppeteer/index.d.ts#L1883-L1885
Hi there, thanks for all of your hard work on Puppeteer! So amazing, the projects that can be built with it.
A quick PR to improve the types for
page.waitForRequest
andpage.waitForResponse
- types are inspired by the DefinitelyTyped@types/puppeteer
package:https://github.com/DefinitelyTyped/DefinitelyTyped/blob/c43191a8f7a7d2a47bbff0bc3a7d95ecc64d2269/types/puppeteer/index.d.ts#L1883-L1885