Skip to content

fix(TS): declare optional argument to debug #148

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

Merged
merged 1 commit into from
Jul 26, 2018
Merged

fix(TS): declare optional argument to debug #148

merged 1 commit into from
Jul 26, 2018

Conversation

gnapse
Copy link
Member

@gnapse gnapse commented Jul 26, 2018

What:

The debug function accepts an optional element as argument, and it was not declared.

Why:

Because without this users of this library that also use TypeScript will not be able to use debug(element).

How:

By adding the corresponding argument in the type definitions.

Checklist:

  • Documentation N/A
  • 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.

Super

@kentcdodds kentcdodds merged commit dff0e1e into testing-library:master Jul 26, 2018
@gnapse gnapse deleted the patch-2 branch July 26, 2018 17:53
@kentcdodds
Copy link
Member

🎉 This PR is included in version 4.1.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

julienw pushed a commit to julienw/react-testing-library that referenced this pull request Dec 20, 2018
<!--
Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated!

Please make sure that you are familiar with and follow the Code of Conduct for
this project (found in the CODE_OF_CONDUCT.md file).

Also, please make sure you're familiar with and follow the instructions in the
contributing guidelines (found in the CONTRIBUTING.md file).

If you're new to contributing to open source projects, you might find this free
video course helpful: http://kcd.im/pull-request

Please fill out the information below to expedite the review and (hopefully)
merge of your pull request!
-->

<!-- What changes are being made? (What feature/bug is being fixed here?) -->

**What**:

All supported Node.js versions should be tested to catch any issues on newer LTS releases.

**Why**:

To ensure that there are no breaking builds on Node.js 6, 10 and 11.

**How**:

Updated the Travis CI config.

**Checklist**:

<!-- add "N/A" to the end of each line that's irrelevant to your changes -->

<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" -->

- [ ] Documentation
- [ ] Tests
- [x] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
- [ ] Added myself to contributors table <!-- this is optional, see the contributing guidelines for instructions -->

<!-- feel free to add additional comments -->
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.

2 participants