-
Notifications
You must be signed in to change notification settings - Fork 3.3k
TypeScript: strict parameter type for location
#5574
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
Conversation
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
PR Review ChecklistIf any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'. User Experience
Functionality
Maintainability
Quality
Internal
|
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.
Thanks for the PR!
I changed it to use keyof Location
instead of keyof Window['location']
, which is different from what cy.location
resolves with when no arguments are passed, updated the return type to use the expected type from Location
, and added some tests.
Thank you! Can you ping me when this is released? |
@OliverJAsh our release bot will comment on the issue whenever it gets released, so you will get an email |
Released in |
User facing changelog
The type definitions for
cy.location()
have been improved.Additional details
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?