-
Notifications
You must be signed in to change notification settings - Fork 19
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
esmock.d.ts export incorrect #110
Comments
@jakebailey would you make a PR? I would do this but am in the middle of something atm |
Sent #111. (It'd be cool for this to be in TS from the start, or have a more complete d.ts file, but that's a different problem than me not being able to import it from my code at all.) |
We're in the process of dramatically improving the interpretation of esm import and export patterns and the changes should be ready in a few days. Please open an issue if you find anything in the current version of the package. The PR will be published soonish -- thank you :) |
Thanks, it's working now! (Besides a bug with relative module paths, which I'll try to report somehow.) |
@jakebailey hopefully a solution will come soon thanks for making this package better |
I tried importing
esmock
and got:It looks like this
d.ts
file is handwritten; rather than what it currently says:I believe this should actually read:
Which matches what TS would output for the code you've written in your
js
file. Playground LinkThe text was updated successfully, but these errors were encountered: