Skip to content

TypeScript fails: A type literal property cannot have an initializer #81

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

Closed
InExtremaRes opened this issue May 8, 2018 · 1 comment · Fixed by #82
Closed

TypeScript fails: A type literal property cannot have an initializer #81

InExtremaRes opened this issue May 8, 2018 · 1 comment · Fixed by #82

Comments

@InExtremaRes
Copy link
Contributor

  • react-testing-library version: 3.0.1
  • react version: 16.3.2
  • node version: 8.11.1
  • npm version: 5.6.0
  • TypeScript version: 2.8.3

It seems like there is a problem with the typings for TypeScript. If I'm import the library and try to compile TypeScript fails.

import {  } from 'react-testing-library';
/home/node/app/client/node_modules/react-testing-library/typings/index.d.ts
(6,21): A type literal property cannot have an initializer.
@InExtremaRes InExtremaRes mentioned this issue May 8, 2018
4 tasks
@kentcdodds
Copy link
Member

🎉 This issue has been resolved in version 3.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

kentcdodds pushed a commit that referenced this issue Jul 25, 2018
* Switch default baseElement to document.body; fixes dom-testing-library #81.

* add contributor to readme

Closes testing-library/dom-testing-library#81
lucbpz pushed a commit to lucbpz/react-testing-library that referenced this issue Jul 26, 2020
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 a pull request may close this issue.

2 participants