-
-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot re-export type definitions #8
Comments
@FrozenKiwi out of curiosity, what version of TypeScript are you using? In my projects on 3.3.3333 I’m able to use |
I should add that I typically place my specs inside the Either way, there seems to be a helpful step missing in the README for sure. |
@FrozenKiwi thanks to another contributor with this problem, you can now export the namespace by passing |
Oops - apologies for not replying: I had a bad filter on github for a while so missed all my notifications |
I'm sure this is user-error, as I would think this is the most common use-case for this library.
I generate TS from spec, with output
Then compile & publish this as my own internal types definition to be included in other projects. However, I can't re-import - when importing the file I see "file is not a module"
To fix I manually add in an "export " at the start of the file:
And this works.
Is this appropriate? Is there a better way to resolve this?
The text was updated successfully, but these errors were encountered: