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

🏷️ Use "import type" when possible #41

Merged
merged 2 commits into from
May 24, 2023
Merged

Conversation

coyotte508
Copy link
Contributor

Ensure that import type is used when possible

Motivation

See microsoft/TypeScript#41883

If an application with stricter TS settings includes this module, they will get TS error, no way to ignore it. For example, with the default SvelteKit template, there will be errors.

Alternative is publishing .d.ts files instead of .ts files for the types field in package.json.

@adamritter adamritter merged commit 0441e04 into adamritter:main May 24, 2023
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.

2 participants