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

Types have incorrect default export #251

Open
jfirebaugh opened this issue Nov 26, 2024 · 0 comments
Open

Types have incorrect default export #251

jfirebaugh opened this issue Nov 26, 2024 · 0 comments

Comments

@jfirebaugh
Copy link

The resolved types use export default, but the JavaScript file uses module.exports = .... This will cause TypeScript under the node16 module mode to think an extra .default property access is required, but that will fail at runtime. These types should use export = ... instead of export default.

See https://arethetypeswrong.github.io/?p=jest-fetch-mock%403.0.3

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

No branches or pull requests

1 participant