vue-hotel-datepicker icon indicating copy to clipboard operation
vue-hotel-datepicker copied to clipboard

Got error using typescript

Open saniales opened this issue 5 years ago • 2 comments

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 ❤️

saniales avatar May 09 '19 20:05 saniales

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.

northwalker avatar May 17 '19 09:05 northwalker

Will do for sure

saniales avatar May 17 '19 09:05 saniales