Closed piperchester closed 5 years ago
Hi @piperchester , i cannot reproduce the error now cause i don't have a working environment to test it, try just adding in your index.ts the module declaration
declare module "geonames.js";
and let me know if the warning disappear.
Thanks
Warning disappeared :) is this something we may want to add to the Readme?
@piperchester yes fine, add a comment in the README suggesting that instruction in a typscript environment. You can use the same PR that you've already opened, then i'll merge it :)
Done; added to #7
Using a freshly installed TSX app through create-react-app, I tried importing the lib with
but I get the dreaded
Maybe we could add to the Readme about this to warn users?