Closed samirbraga closed 4 years ago
Hi! Thanks for giving a heads up. Unfortunately, I am not responsible for the TypeScript definitions for this library, and they are not a part of the library itself. Since I don't personally use TypeScript, I am not even sure how it works our how the definitions are maintained, but I hope you can figure it out!
Hi, I have noted that the method
route
of classOSRMv1
has a parameter calledcallback
typed as(args?: any) => void
, but the callback expects an error as the first argument and routes as second. The code follows:The typescript compiler raise an exception and the only way I made it work was: