I'm trying to import a module that contains TypeScript definitions. Installing @types/flatpickr even warns, that one doesn't need to install it.
It seems like tsc doesn't pick up the *.d.ts files of the installed package and then simply ignores the whole package.
I created a simple JS project that shows the issue: https://github.com/Strayer/typescript-import-flatpickr-issue
The error message reported by tsc is:
test.ts:1:23 - error TS2307: Cannot find module 'flatpickr'.
1 import flatpickr from "flatpickr";
~~~~~~~~~~~
The types themselves can be found in node_modules/flatpickr/dist/types after installing the dependencies.
What do I need to do to help TypeScript find the included type definitions?