Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

feat: Add type definitions #16

Merged
merged 1 commit into from
Dec 18, 2018

Conversation

NicholasBoll
Copy link
Contributor

Fixes #4

* cy.xpath(`//ul[@class="todo-list"]//li`)
* .should('have.length', 3)
*/
xpath<E extends Node = HTMLElement>(selector: string, options?: Partial<Loggable & Timeoutable>): Chainable<JQuery<E>>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The command doesn't actually allow configuration of log, but should allow timeout config. Either the type definition should not include Loggable or the implementation should allow disabling logging.

@bahmutov
Copy link
Contributor

@NicholasBoll first - thank you! second - I have just added CLA assistant to this repo, could you sign the CLA and then I will be happy to merge the type definition for this command (and will make a separate issue about logging option)

@NicholasBoll
Copy link
Contributor Author

@bahmutov Signed!

@bahmutov bahmutov merged commit ad6a767 into cypress-io:master Dec 18, 2018
@bahmutov bahmutov mentioned this pull request Dec 18, 2018
@bahmutov
Copy link
Contributor

🎉 This PR is included in version 1.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@NicholasBoll NicholasBoll deleted the feat/add-type-definitions branch December 19, 2018 00:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants