Languages
[Edit]
EN

TypeScript - interface naming convention

31 points
Created by:
Palus-Bear
1016

This article explains the rules for interface naming convention used in TypeScript.

The interface naming convention defines the following rules:

  1. Use PascalCase for interface names.
  2. Use camelCase for interface members.
  3. Do not use "I" as a prefix for interface names.
  4. Use whole words in names when possible.

Example predefined interfaces: Window, Document, etc.

Interface naming convention example

Edit

 

Interface implementation:

Run it online here.

See also

Edit
  1. Programming - PascalCase definition with example

  2. Programming - camelCase definition with example

References

Edit
  1. TypeScript Handbook Interface - Microsoft Github Docs
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

TypeScript

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join