Skip to content

Fixes types #82

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
May 8, 2018
Merged

Conversation

InExtremaRes
Copy link
Contributor

Fixes #81

What: Fixes typings for TypeScript.

Why: The syntax wasn't correct and TypeScript didn't compile.

How: Removing the initializers

Checklist:

  • Documentation
  • Tests
  • Ready to be merged
  • Added myself to contributors table

@maddijoyce
Copy link
Collaborator

Ah good catch. I don’t know I didn’t spot those in the update.

@kentcdodds
Copy link
Member

Hmmm... You'll need to resolve the .all-contributorsrc conflicts, then run npx kcd-scripts contributors generate and that'll fix the README.

@InExtremaRes
Copy link
Contributor Author

InExtremaRes commented May 8, 2018

Is it ok if I rebase the master branch and push again?

(Asking since for some teams rebase is the devil itself)

A type literal propery cannot have an initializer. The runtime code
should take care of initialize the value.
@kentcdodds kentcdodds merged commit 226c306 into testing-library:master May 8, 2018
@kentcdodds
Copy link
Member

🎉 This PR is included in version 3.0.2 🎉

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
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.

TypeScript fails: A type literal property cannot have an initializer
3 participants