Skip to content

Conversation

msimulcik
Copy link
Contributor

This is a follow up on #246

What:
Make type parameter of getQueriesForElement more specific

Why:
To provide better type checking

How:
By specifying type of queries (same as in react-testing-library typings)

Checklist:

  • Documentation added to the docs site N/A
  • Typescript definitions updated
  • Tests N/A
  • Ready to be merged

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

Sweet :)

@kentcdodds kentcdodds merged commit 02865f1 into testing-library:master Apr 17, 2019
@kentcdodds
Copy link
Member

🎉 This PR is included in version 3.19.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants