-
Notifications
You must be signed in to change notification settings - Fork 35
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
TypeScript support #55
Comments
Would be awesome, but currently not in our scope, as i don't have any experience with it, yet... |
Hello, I use a AWS lambda with a runtime Node.js 14. I tried to import openrouteservice-js. But when I try to run my code the following error appears :
Here what I've done: mylambda.ts :
I declare a types.d.ts file :
in my package.json :
my tsconfig.json:
I also use a webpack.conf.js file similar to my open source project: https://github.com/Basile001/another-aws-example/blob/master/back/webpack.config.js I don't understand why my lambda return this error, I miss something but I don't know what it is ? I tried the require way instead of the import way but the result is the same, or to mess up with my tsconfig file but nothing change. Thank you for the help in advance. Kind regards, Basile |
Perhaps this can be used to generate the TypeScript declaration file(s). https://www.typescriptlang.org/docs/handbook/declaration-files/dts-from-js.html |
How about implement typescript support for your package?
The text was updated successfully, but these errors were encountered: