-
Notifications
You must be signed in to change notification settings - Fork 52
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
Type declaration not published to NPM #40
Comments
Thanks for reporting this. I have published a new package (v0.8.1) to fix this. |
I have pulled in Thanks for getting this resolved so quickly! One other thing that might be beneficial in the Readme is to point out for Typescript is they should do the following:
Based on the typings the By importing from leaflet the code is properly compiled (in my cause Angular) so that the curve function hangs off the |
I've updated the Readme. Thanks for pointing this out! |
The type declaration file was added in #38. However, it looks like the declaration file is not being published to NPM so it doesn't show up in the
node_modules/@elfalem/leaflet-curve
.Based on the Typescript docs the two main ways are either via NPM with the library or through the @types organization on NPM.
https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html
The previous PR included the types in the
package.json
and I also see someone already has submitted a version to the @types organization that separate from the ones included in this repository.https://www.typescriptlang.org/dt/search?search=leaflet-curve
So, my guess is that it just got missed during the npm publish process?
The text was updated successfully, but these errors were encountered: