I’m trying to namespace the interfaces contained in my types/
directory. To do this, I’m using module
s containing nothing but Typescript structures (interface
, type
). When I try to import these modules, I get an error
The requested module '../types/Model' does not provide an export named 'default'
The error goes away when I add something like const foo = ''
to the module, so I’m assuming the error has something to do with there not being anything to transpile to JS in the module.
Is there a different way I should be namespacing collections of interfaces like this?