-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Incorrect type definitions for .then
#3075
Comments
@bahmutov @brian-mann I already have a solution ready-to-go for option 1. If that is the desired fix, I can create a PR to fix this issue. It is probably not very common to add a custom timeout to |
I also vote for option |
I vote for option 1 as well. We previously had someone ask about this here: #1772 |
PR coming soon |
Released in |
Current behavior:
According to the documentation for
.then
,options
optionally come first: https://docs.cypress.io/api/commands/then.htmlThe type definitions for
.then
put options optionally after the callback.Desired behavior:
No type error
Steps to reproduce: (app code and test code)
The following code works at runtime, but has Typescript errors
Versions
Cypress: 3.1.4
There are 2 ways to fix this:
The text was updated successfully, but these errors were encountered: