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
[typescript] Cypress.session type does not exist #19363
Comments
@IanVS Would you be interested in contributing the types for this syntax? |
Honestly I'm not sure why they're not already there, since the file is written in typescript...
To me, that points to a larger problem in the way that typescript is being run and published within the repo. Maybe it's better for someone with more familiarity to take a quick look at it? |
@IanVS I think the issue is session is missing from the Cypress interface here. |
👍 thanks, then yeah I can take a crack at adding it. |
The code for this is done in cypress-io/cypress#19412, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
I tried to use
Cypress.session.clearAllSavedSessions();
, but got a typescript error.Desired behavior
Cypress.session
should be typed correctly.Test code to reproduce
https://github.com/IanVS/cypress-test-tiny
npm i
npm run typecheck
Cypress Version
9.1.1
Other
No response
The text was updated successfully, but these errors were encountered: