camelCase
for functions, variable names, class members and methods, interface methods and members, tlype membersPascalCase
for class, interface, type, namespace, enum, enum members names- Don't use
null
orundefined
explicitly - I use prettier for formatting typescript files.
- Prefer single quotes, use semicolons, use 2 spaces. (Check prettier configuration)
- Name source files with
camelCase
- Use type when you might need a
union
orintersection
- Use interface when you want
extends
orimplements