What is the naming convention for interfaces and classes in TypeScript?

Someone has developed a TypeScript style guide. You can find it here: https://ts.dev/style

From that guide:

This is the style guide for the TypeScript language that was based on the one that is provided by Google. It contains both rules and best practices. Choose those that work best for your team.

This is what it says about interface naming:

Do not mark interfaces specially ( IMyInterface or MyFooInterface)
unless it’s idiomatic in its environment. When introducing an
interface for a class, give it a name that expresses why the interface
exists in the first place (e.g. class TodoItem and interface
TodoItemStorage if the interface expresses the format used for
storage/serialization in JSON).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)