Open shapel opened 6 years ago
According to the TypeScript coding guidelines, interface should not start with I:
Do not use "I" as a prefix for interface names.
https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines#names
This is why we generate the interfaces without I when TypeStyle=Interface
. When TypeStyle=Class
then the main class is generated without I and the "helper" interface with I because it cannot be generated with the same name...
As you know, link you provided "are mainly meant for contributors to the TypeScript project."
Can this behavior be parameterized? Because by default tslint expect I
prefix ( https://github.com/palantir/tslint/blob/master/src/configs/recommended.ts#L55 ) and this can break linting or worse expectations of interfaces usage through the whole solution which used generated client.
Also I can share with you (in separate issue) what in the current implementation of generated classes made me try to use TypeStyle=Interface
.
Hello
Look like system has inconsistency in typescript interface naming.
In case
TypeStyle=Class
according toClass.liquid
interface name will be generated withI
at the beginning, (what's good practice according to https://palantir.github.io/tslint/rules/interface-name/) in caseTypeStyle=Interface
according toInterface.liquid
interface name will be generated withoutI
at the beginning.