-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Unable to import module from typescript #14
Comments
The only way I found to avoid this error is to add the following line in index.js: timestamp.default = timestamp; and to switch back in my code to: import timestamp from 'time-stamp'; However I can find no way to write an index.d.ts compatible with the current index.js. |
want to do a pr? |
@jonschlinkert I do not see at the moment how to do it without impacting too much the current behavior of index.js. |
If you use
TypeScript offers |
@fregante OK, thank you. I will experiment on this in the coming days to see if I can do a PR. |
PR submitted |
I commented at the PR(#18 (comment)) and make a new PR(#20) to solve this. In a word, |
This is not true. For |
This is a follow-up of #12
The proposed solution does not work either:
leads to :
The text was updated successfully, but these errors were encountered: