Skip to content
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

Option to add suffix for the interface names #25

Open
antal-huck opened this issue May 21, 2021 · 0 comments
Open

Option to add suffix for the interface names #25

antal-huck opened this issue May 21, 2021 · 0 comments

Comments

@antal-huck
Copy link

Would it make sense to add an option --interface-name-suffix <string> to allow modification of the interface's name?

Example: Suppose we have a C# class called ExampleClass. I would like to generate an interface with the name ExampleClassInterface. This could be achieved with the option --interface-name-suffix Interface.

Use case: Later I can easily create a TypeScript class ExampleClass that implements ExampleClassInterface. This I could not do, if the interface itself is already called ExampleClass, or I would need to do something like this:

import {ExampleClass as ExampleClassInterface} from "bla";

It could also be the option --interface-name-prefix I to generate IExampleClass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant