-
-
Notifications
You must be signed in to change notification settings - Fork 136
Add typescript definition file #13
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Deploy preview for vue-content-loader ready! Built with commit 510678d |
|
@@ -7,6 +7,7 @@ | |||
"type": "git" | |||
}, | |||
"main": "dist/vue-content-loader.cjs.js", | |||
"types": "src/vue-content-loader.d.ts", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe move to index.d.ts
? src
folder is not published on npm.
Closing in favor of #121 |
🎉 This issue has been resolved in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I was using this library for a personal app and I needed a typescript definition file so here it is!
Since it's a small code base and there is not much properties going on, every vue properties are declared for
ContentLoader
and the other definitions are just extendingContentLoaderConstructor
.Already tested on my local source code, need to be tested before merged though (first time I'm doing a .d.ts file for a particular module).
Should solve #11