Question about naming models and their correspondi...
# orm-help
c
Question about naming models and their corresponding types...I'm new to TypeScript and one thing I've noticed is that when a model name ends with the word "Type" that leads to awkward "TypeType" types. For example, a project I'm starting has
Case
and
CaseType
models which lead to
CaseType
and
CaseTypeType
types if I'm appending the word
Type
to name my types. Awkward. It was suggested to prefix type names with
I
instead, but I don't use interfaces much mostly just types which I've heard someone's company prefixes with
T
so maybe I'd do that, and prefix interfaces with
I
and enums with
E
?
👍 1
r
Yes prefixing
T
should be fine 🙂