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

Fix corresponding type declarations #193

Closed
wants to merge 1 commit into from
Closed

Conversation

hywax
Copy link

@hywax hywax commented May 13, 2024

Need to add a "types" field to solve the TS problem

TS2307: Cannot find module conf or its corresponding type declarations.

It solves issue sindresorhus/electron-store#276

@sindresorhus
Copy link
Owner

This is not correct. If you have configured your project correctly, TypeScript will read the types location from the exports field. Adding "types" may seem like a workaround, but it could have unintended consequences. The current package.json is correct.

Repository owner locked as resolved and limited conversation to collaborators May 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants