contentful-typescript-codegen icon indicating copy to clipboard operation
contentful-typescript-codegen copied to clipboard

Add option to disable interface "I" prefix.

Open forrest-keller opened this issue 5 years ago • 3 comments

Issue

As described here, it can often be concidered bad to name interfaces with a prefix of "I".

Solution

Therefore, it may be good to add a prefix option to the CLI to let the user select this prefix. For example, contentful-typescript-codegen --prefix I or contentful-typescript-codegen --no-prefix. It could default to "I".

forrest-keller avatar Jun 09 '20 08:06 forrest-keller

This issue has been resolved with this fork. Closing, however it may be good for this to be merged.

forrest-keller avatar Jul 21 '20 04:07 forrest-keller

Thanks. Here's a link to the fork https://github.com/AlexanderArvidsson/contentful-typescript-codegen

davilima6 avatar Dec 17 '23 08:12 davilima6

@forrest-keller , would you like to reopen this issue? Otherwise I'm considering opening one with the same text.

davilima6 avatar Dec 17 '23 08:12 davilima6