mirror of
https://github.com/motajs/template.git
synced 2026-11-02 23:14:34 +08:00
docs: 战斗流程
This commit is contained in:
1 parent
c48f91c25c
commit
d6275c0ea7
3 files changed
+402
-2
No files matched your search
@@ -86,7 +86,8 @@
|
||||
- 合理使用 `readonly`、`protected`、`private` 关键字。
|
||||
- 可选参数过多时(大于两个),考虑改用对象参数。
|
||||
- 尽量避免 `as` 类型断言,除非必要。
|
||||
- 函数类型单独开一个 `type` 类型别名,除非函数类型本身较短(小于 20 字符,且不会因为此函数类型导致换行)
|
||||
- 函数类型单独开一个 `type` 类型别名,除非函数类型本身较短(小于 20 字符,且不会因为此函数类型导致换行)。
|
||||
- 当任何时候必须出现对象类型的时候,单独声明一个 `interface`,不得出现直接的对象类型。
|
||||
|
||||
### 其他要求
|
||||
|
||||
|
||||
Reference in new issue
Block a user