wakirin / Litepicker

Date range picker - lightweight, no dependencies
MIT License
895 stars 133 forks source link

No-CSS Litepicker - No Type Declaration #284

Open Full-lifey opened 2 years ago

Full-lifey commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

Attempting to import the no-css version of litepicker into a StencilJS typescript library. When importing according to the documents there is a standard type declaration error.

Could not find a declaration file for module ‘litepicker/dist/nocss/litepicker.umd.js’. .../node_modules/litepicker/dist/nocss/litepicker.umd.js’ implicitly has an ‘any’ type. Trynpm i --save-dev @types/litepickerif it exists or add a new declaration (.d.ts) file containingdeclare module ‘litepicker/dist/nocss/litepicker.umd.js’;ts(7016)”

To Reproduce Steps to reproduce the behavior:

  1. Create a typescript project
  2. Add noImplicitAny: true to tsconfig.json
  3. add litepicker dependency
  4. Try to import no-css Litepicker according to docs
  5. See error

Expected behavior A working import without errors

jsfiddle.net / codepen.io / etc No-CSS Litepicker

Additional context Add any other context about the problem here.

Full-lifey commented 2 years ago

Tagging co-worker for resolution

@NicDominguez