I'm trying to figure out how to use typings files in my Angular project. But all guides or SO posts seems to tell just to import the declared module in the typings file. In my case (gridstack.js) it has no declared modules, only interfaces and one declared namespace.
I have declared gridstack in the tsconfig.file under types. And I can e.g. declare a variable of type IGridstackOptions
with no compiler errors, but I get a runtime error telling me
C:/myPath/src/app/other-route/other-route.component.ts (16,60): Cannot find name 'IGridstackOptions'.
Does anybody know what I'm doing wrong? And does it make sense to have a typings file without declared modules? If yes, can you explain the reasoning behind this?
Thanks :)