northwalker / vue-hotel-datepicker

A Vue.js date range picker component without other dependencies for hotels and multi-purpose.
https://northwalker.github.io/vue-hotel-datepicker/
MIT License
85 stars 27 forks source link

Got error using typescript #5

Open saniales opened 5 years ago

saniales commented 5 years ago

Hello and thanks for the amazing component.

When i try to import it in a Vue Typescript project, I encounter this error.

37:32 Could not find a declaration file for module '@northwalker/vue-hotel-datepicker'. '/your/project/root/node_modules/@northwalker/vue-hotel-datepicker/lib/vue-hotel-datepicker.umd.js' implicitly has an 'any' type.
  Try `npm install @types/northwalker__vue-hotel-datepicker` if it exists or add a new declaration (.d.ts) file containing `declare module '@northwalker/vue-hotel-datepicker';

Can you please fix this?

Thanks again ❤️

northwalker commented 5 years ago

Hello @saniales , Support for Typescript is not considered in short-term planning, and I have no typescript dev environment for testing, if you have any simple solution to support typescript, PR is welcome.

saniales commented 5 years ago

Will do for sure