I am consuming a React component called shiitake from npm into my project where I use TypeScript. That library does not have TypeScript declarations so I thought I would write o
I had the same problem today.
Turns out I paste exported interfaces outside of the module declaration. The typings file I used as a template had private interfaces at the end of the file.
So my exported interfaces were declared outside of the module declaration. This is drives typescript compiler nuts.
Once I moved the interfaces into the module boundaries everything got fixed.