I suggest you ...

TypeScript: Start interface names with an "I"

I've found it frustrating to have to search for the definitions of types to find out if they should be instantiated as classes or interfaces. Coming from C#, the convention there is that interfaces are named with and "I" as the first character. So, IThing is immediately identifiable as an interface whereas Thing is obviously a class. I do understand that this would break a lot of current code.

11 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Will Dougherty shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base