Skip to content

point package.json types property to including type declarations #58

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
Jun 24, 2020

Conversation

formatlos
Copy link
Contributor

What:

I do get an eslint error FallbackProps not found in 'react-error-boundary' import/named with eslint-import-resolver-typescript as it seems that the built js bundles gets favored over the included types.

Why:

I'm aware that the problem might be related to how eslint-import-resolver-typescript is trying to resolve the types, but adding the the types prop in package.json fixes the issue and is advised by the typescript team anyways.

How:

point the types prop in package.json to the declaration file.

Checklist:

  • Documentation
  • Tests
  • Ready to be merged

@codecov-commenter
Copy link

codecov-commenter commented Jun 24, 2020

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #58   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           30        30           
  Branches         8         8           
=========================================
  Hits            30        30           

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 ab6e19f...e7ce9c8. Read the comment docs.

Copy link
Collaborator

@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'm fine with this. Thanks!

@kentcdodds kentcdodds merged commit d6ed8db into bvaughn:master Jun 24, 2020
@kentcdodds
Copy link
Collaborator

🎉 This PR is included in version 2.2.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants