-
Notifications
You must be signed in to change notification settings - Fork 62
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
Question: jco types
generating namespaces instead of modules?
#439
Comments
Explicitly declaring the imports sounds like a sensible approach. The current types are primiarly for In this guest generation case, it definitely makes sense to generate a |
I just ran into this myself. I would be happy to look into contributing the change, if you're looking for help. |
@cdata no one is currently working on this, a PR would be great if you're interested in contributing. |
@cdata just wanted to check in if you were working on this issue. I would be happy to look into it otherwise |
I am using
jco types
to create the typings to build an SDK based on the generated code, the generated types contain namespaces instead of modules which means IDE does not provide intellisense and alsotsc
fails to compile without//@ts-ignore
the wit imports .I have the following
wit
Using the following command to generate the types
jco types -o types <path to wit>
provides the following directory structureAnd the contents of the files are
And the following is the guest code
I could get around this by manually editing the generated types to be the following
Please let me know if I am missing something here. Thanks!
The text was updated successfully, but these errors were encountered: