Skip to content

Fix TypeScript type imports #6

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
Jul 11, 2022
Merged

Fix TypeScript type imports #6

merged 1 commit into from
Jul 11, 2022

Conversation

remcohaszing
Copy link
Member

Initial checklist

  • I read the support docs
  • I read the contributing guide
  • I agree to follow the code of conduct
  • I searched issues and couldn’t find anything (or linked relevant results below)
  • If applicable, I’ve added docs and tests

Description of changes

TypeScript 4.7 includes the new node16 module resolution value. This requires imports to have an extension, even if the import doesn’t reference an existing .js file.

This still works with other module resolution values.

TypeScript 4.7 includes the new `node16` module resolution value. This
requires imports to have an extension, even if the import doesn’t
reference an existing `.js` file.

This still works with other module resolution values.
@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Jul 11, 2022
@wooorm wooorm changed the title Fix Node type imports Fix TypeScript type imports Jul 11, 2022
@wooorm wooorm merged commit 35256be into syntax-tree:main Jul 11, 2022
@wooorm wooorm added ☂️ area/types This affects typings 💪 phase/solved Post is done labels Jul 11, 2022
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the 🤞 phase/open Post is being triaged manually label Jul 11, 2022
@wooorm
Copy link
Member

wooorm commented Jul 11, 2022

Released in 2.0.2!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☂️ area/types This affects typings 💪 phase/solved Post is done
Development

Successfully merging this pull request may close these issues.

3 participants