-
Notifications
You must be signed in to change notification settings - Fork 9
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
TS namespace #10
Comments
Hmm, the transformations goes through core-types and eventually into JSON Schema, OpenAPI or GraphQL, neither of which have namespaces. What is the expected result here? To simply extract interfaces from the namespace and ignore the namespace in the output, or mangle the names somehow into e.g. |
It would be perfect for me if we could just ignore these namespaces completely (as in, don't skip the interfaces but no need to include the namespace in the output), or at least have that as a option. const { data: doc } = convertTypeScriptToCoreTypes(tsFile, {
namespace: 'ignore',
}); |
I've opened a PR (core-types-ts#10) to add basic namespace handling. Since my target use case needs namespaces to differentiate identically named interfaces, I've elected to format namespaces like |
Introduces --ts-namespaces option fix #10
Introduces --ts-namespaces option fix #10
🎉 This issue has been resolved in version 2.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hi,
It seems there is no namespace support for typeconv
Example, this file sample.ts output nothing
export namespace ModelVersion { export interface Version { version: string; codename: string; id: string; } }
Best regards
The text was updated successfully, but these errors were encountered: