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] Add .js extension to file imports #333

Merged

Conversation

MysteryBlokHed
Copy link
Member

Closes #332

Fixes problems when moduleResolution in tsconfig.json is set to NodeNext (TS2834).

Fixes problems when `moduleResolution` in tsconfig.json is set to
NodeNext.
Weirdly, TypeScript only complains about these imports when
`moduleResolution` is set to `NodeNext`. I guess that whatever the
default module resolution system is can infer that they're from the
augmented module, but that doesn't seem to work on `NodeNext`.
@jgerigmeyer jgerigmeyer merged commit f71745c into color-js:main Oct 9, 2023
5 checks passed
@MysteryBlokHed MysteryBlokHed deleted the types/add-import-extensions branch October 9, 2023 16:26
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.

types don't work with "moduleResolution": "NodeNext"
2 participants