koishi
koishi copied to clipboard
Feature: 为所有官方插件中的 Duration 类型添加单位标注
Describe the problem related to the feature request
以全局设置为例,8 个配置项里只有一个标了单位的,剩下的都没有单位标注。新手几乎总不能只凭借给出的信息判断这些配置项的单位。
Describe the solution you'd like
为所有官方插件中的 Duration 类型添加单位标注,类似 timezoneOffset
。
Describe alternatives you've considered
在醒目的地方(如全局设置的 usage
)标注 Duration 没说一律毫秒
。这么做有两个缺陷:
- 标识与具体的配置项相隔很远,看配置项的时候无法立即记起单位标识,也容易忽略;
- 如果第三方插件没有单位标识并且并不使用毫秒,全局的标识会对插件配置造成误导。
Checklist
这些包或插件需要作出修改:
- [ ]
@koishijs/core
- [ ] 待补充