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

feat: add TS typings #35

Merged
merged 1 commit into from
Jun 23, 2019
Merged

feat: add TS typings #35

merged 1 commit into from
Jun 23, 2019

Conversation

SimenB
Copy link
Member

@SimenB SimenB commented Jun 23, 2019

Need these to use the module in Jest 🙂

"convert-source-map": "^1.6.0",
"source-map": "^0.7.3"
},
"devDependencies": {
"@types/node": "^12.0.10",
Copy link
Member Author

Choose a reason for hiding this comment

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

this is a dev dep since it pollutes the global namespace (jestjs/jest#8092)

@coveralls
Copy link

coveralls commented Jun 23, 2019

Pull Request Test Coverage Report for Build 126

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 91.625%

Totals Coverage Status
Change from base Build 125: 0.0%
Covered Lines: 462
Relevant Lines: 502

💛 - Coveralls

@bcoe
Copy link
Member

bcoe commented Jun 23, 2019

@SimenB 👋 I commented on the other PR, we've usually been adding types as a dev dependency, on the libraries I work on at Google, because it allows folks upstream to override the types more easily ... I don't have a strong opinion about the approach used, but curious to know the advantages of having it as a regular dependency.

@SimenB
Copy link
Member Author

SimenB commented Jun 23, 2019

Answered on Slack, but to have it here as well - if it's part of the exported types from the module, it should be a dependency.

@bcoe bcoe merged commit 5251108 into istanbuljs:master Jun 23, 2019
@SimenB SimenB deleted the types branch June 23, 2019 19:32
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.

3 participants