-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Define types for plugin events #6322
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
|
@bahmutov How can we add tests for this like for Cypress tests? Is this even the right place to put this, next to the other types? They're 2 different environments... |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
…ss into issue-6321-plugin-types
…ss into issue-6321-plugin-types
…ss into issue-6321-plugin-types
I bumped the kitchensink dep with the released JSDoc changes. I also added this change to the 4.0 changelog, let me know if there's any other documentation required for this. |
@jennifer-shehane We should probably add this to the TypeScript doc, right? An example for how to utilize it is now in the kitchen sink repo |
@chrisbreiding Yes, I'm not really familiar with what these changes mean for users, so open an issue/PR for docs. |
@brian-mann My questions were answered. This is good to go now. |
User facing changelog
Define TypeScript types for plugin events
Additional details
This allows all the benefits of TypeScript for plugin events (type-checking, auto-completion, etc).
Documentation PR: cypress-io/cypress-documentation#2466
How has the user experience changed?
I don't know how users can utilize this. I don't think it will work by default, so someone more knowledgeable with TypeScript will need to help answer that.
PR Tasks
fix add JSDoc to scaffold plugins file #6323
PR to add JSDoc in example-kitchensink Add jsdoc pluginsfile cypress-example-kitchensink#354
cypress-documentation
?type definitions
?cypress.schema.json
?