-
-
Notifications
You must be signed in to change notification settings - Fork 395
[Request]Add prefix or suffix generated types #191
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
Comments
Yeah, it's would be a good idea to add |
Thanks @js2me awesome work! 👍 |
@the-ult |
My classic usage is to prefix all the interfaces with I, all the types with T and all the enums with E. |
+1 But it must compatible with prefixes options above. |
How could I restrict adding suffix only to interfaces and not enums? |
Would it be possible to add an option to add a prefix or suffix to the generated types to prevent errors like:
E.g.:
npx swagger-typescript-api ... --suffix=model
Person
=>PersonModel
For example:
We are trying to use the generated types/interfaces with graphql-codegen, but the naming of the generated types conflict with the already existing (generated) graphql types.
The text was updated successfully, but these errors were encountered: