Skip to content

fix: Act type #438

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 2 commits into from
Aug 12, 2019
Merged

fix: Act type #438

merged 2 commits into from
Aug 12, 2019

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Aug 12, 2019

What:

Closes #436 by putting maintenance burden for act types on @types/react-dom. async act will be supported once DefinitelyTyped/DefinitelyTyped#37554 is merged.

Why:

If act is exported from react-dom/test-utils we export it as well. The types should reflect that.

How:

Conditional types

Checklist:

  • [ ] Documentation added to the
    docs site
  • Tests: tested locally by linking package. types from react-dom/test-utils are picked up properly.
  • Typescript definitions updated
  • Ready to be merged

@eps1lon eps1lon added the TypeScript Related to TypeScript. Note: only certain maintainers handle TypeScript labeled issues. label Aug 12, 2019
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.

I was going to just say let's wait on #437, but let's just get this in now.

@kentcdodds kentcdodds merged commit b5584eb into testing-library:master Aug 12, 2019
@kentcdodds
Copy link
Member

Thanks @eps1lon!

@kentcdodds
Copy link
Member

🎉 This PR is included in version 9.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@eps1lon eps1lon deleted the fix/act-type branch August 13, 2019 00:23
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.

typescript declaration of act should match React 16.9.x
2 participants