Skip to content
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 a new declaration (.d.ts) #2

Open
eliassamadi opened this issue Apr 6, 2020 · 1 comment
Open

Add a new declaration (.d.ts) #2

eliassamadi opened this issue Apr 6, 2020 · 1 comment

Comments

@eliassamadi
Copy link

Hi,

I'd like to use your leaflet plugin, after using npm install tripkit-leaflet did not show any problem with install. But when I use require("tripkit-leaflet") it shows me the following message:

Could not find a declaration file for module 'tripkit-leaflet'. 'c:/Users/Elias/Documents/GitHub/it-project-19-20-h/node_modules/tripkit-leaflet/dist/TripgoRouting.js' implicitly has an 'any' type.
Try npm install @types/tripkit-leaflet if it exists or add a new declaration (.d.ts) file containing declare module 'tripkit-leaflet';ts(7016)

Does this have an impact on my website?
Do you also have a tutorials? Since I'm a junior developer, it would be a huge help.

Sincerly yours,

Elias Samadi

@gimenna
Copy link
Contributor

gimenna commented Apr 7, 2020

Hi Elias,
I'll try to reproduce the error you mention to help you asap. Anyway to don't block your work, you could download the code and try the integration in the way we explain here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants