通常,EasyAPI前端命名应遵循TypeScript命名约定。请参阅:https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines
Classes:
- Example:
Compiler,ApplicationMetadata - Camel case with first letter uppercase
- In general prefer single words. (This is so that when appending
ProtoorFactorythe class is still reasonable to work with.) - Should not end with
Implor any other word which describes a specific implementation of an interface.
Interfaces:
- Follow the same rules as Classes
- Should not have
IorInterfacein the name or any other way of identifying it as an interface.
Methods and functions:
- Example:
bootstrap,someMethod - Should be camel case with first letter lowercase
Constants:
- Example:
CORE_DIRECTIVES - Should be all uppercase with SNAKE_CASE