error TS2691: An import path cannot end with a ‘.d.ts’ extension. Consider importing ‘./index’ instead.
Broken Code ❌
You cannot directly import code from declaration files:
Fixed Code ✔️
You have to import functions from the source code file (e.g.