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

Support TS default import #29

Closed
KilianKilmister opened this issue Sep 2, 2020 · 2 comments
Closed

Support TS default import #29

KilianKilmister opened this issue Sep 2, 2020 · 2 comments

Comments

@KilianKilmister
Copy link

Quoting from #28:

It's up to other tools to follow what TS supports.

TS also suports default imports, but yout packages definition sais it doesn't

@sindresorhus
Copy link
Owner

This is a CommonJS package (like most packages on npm), so it's recommended you use the require syntax for that. However, there are TS settings to override it and let you use normal import syntax with this package too. I'm following the advice of the TS team on this.

@KilianKilmister
Copy link
Author

I read the thread and yeah, it sounds reaonable

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

2 participants