-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add Typescript declaration #3
Comments
Feel free to make a pull request with these and I’ll be happy to merge and publish a new version! :) |
Turns out that the problem has nothing to do with Typescript. It doesn't work with Node.js v12.
$ node test.js
The ES2015 module style in the source isn't compatible with Node.js v12 (which is as high as I can go right now). |
@filipdanic |
Using Typescript is the only option? I am working on a non-typescript project in next JS. |
No but the PR #5 solves both issues. |
This library is really hard to import into a Typescript project.
A couples lines in a
.d.ts
file de declare the two imports would make it easy.The text was updated successfully, but these errors were encountered: