Skip to content
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

fix: Make 2nd arg for getQueriesForElement optional and export within for TS types #68

Merged
merged 1 commit into from
Jul 9, 2018

Conversation

pbomb
Copy link
Contributor

@pbomb pbomb commented Jul 9, 2018

What:

Fixes TypeScript definition for getQueriesForElement by making second argument optional. Also exports within.

Why:

This matches the actual dom-testing-library API

How:

By updating the TS Type definition files

Checklist:

  • Documentation N/A
  • Tests N/A
  • Ready to be merged
  • Added myself to contributors table N/A

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.

Super! Thanks!

@kentcdodds kentcdodds merged commit ec672a6 into testing-library:master Jul 9, 2018
@kentcdodds
Copy link
Member

🎉 This PR is included in version 2.9.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

alexkrolick added a commit to alexkrolick/dom-testing-library that referenced this pull request Sep 13, 2018
* feat(examples): Add context examples

* modify the examples

* fix example stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants