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: Update typings for cleanup #776

Merged
merged 1 commit into from
Sep 3, 2020
Merged

fix: Update typings for cleanup #776

merged 1 commit into from
Sep 3, 2020

Conversation

artem-malko
Copy link
Contributor

@artem-malko artem-malko commented Sep 3, 2020

What:

Update types for cleanup function. cleanup became sync, but in typings it returns Promise.
Update was there: #768

Why:

Cause now types are not valid for real code.

How:

Just manually update typings)

Checklist:

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

It might be cool to update typings automatically. I can create an issue, but do not have much time to implement it(

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 3, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 6661561:

Sandbox Source
React Configuration
kentcdodds/react-testing-library-examples Configuration

@codecov
Copy link

codecov bot commented Sep 3, 2020

Codecov Report

Merging #776 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #776   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         4           
  Lines          109       109           
  Branches        16        16           
=========================================
  Hits           109       109           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 491bedc...6661561. Read the comment docs.

@eps1lon eps1lon added the TypeScript Related to TypeScript. Note: only certain maintainers handle TypeScript labeled issues. label Sep 3, 2020
Copy link
Member

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

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

Thanks!

@eps1lon eps1lon changed the title Update typings for cleanup fix: Update typings for cleanup Sep 3, 2020
@eps1lon eps1lon merged commit 9191890 into testing-library:master Sep 3, 2020
@eps1lon
Copy link
Member

eps1lon commented Sep 3, 2020

@all-contributors add @artem-malko for code

@allcontributors
Copy link
Contributor

@eps1lon

I've put up a pull request to add @artem-malko! 🎉

@testing-library-bot
Copy link

🎉 This PR is included in version 11.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@artem-malko artem-malko deleted the pr/update-cleanup-types branch September 3, 2020 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released TypeScript Related to TypeScript. Note: only certain maintainers handle TypeScript labeled issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants