参见英文答案 >
Typescript style guide for interfaces 4个
似乎没有这个信息的明确位置:
似乎没有这个信息的明确位置:
我总是将接口文件命名为IMyInterfaceName.extension,接口命名为IMyInterface.
这是Angular 2和Typescript的方法吗?
谢谢 :)
解决方法
根据
NAMING.md.
In general Angular2 should follow TypeScript naming conventions. See: 07001
它对接口有什么看法?
Interfaces:
Follow the same rules as Classes
Should not have I or Interface in the name or any other way of identifying it as an interface.