discourse-writing-typescript(Discourse TypeScript 编写)
io.github.discourse/discourse/discourse-writing-typescript
为 Discourse 核心、插件与主题编写 TypeScript。在新增 .ts/.gts 文件(组件、modifier、helper、service、工具函数)、为现有公开 API 补充类型,或将已有的 .js/.gjs 文件转换为 .ts/.gts 时使用。涵盖组件/modifier/普通类的 Signature 模式、Signature 的 TSDoc、未类型化依赖的类型标注、编译期类型测试、宽松全局 tsconfig 下的严格类型标准,以及类型检查器无法发现的忠实移植与重命名陷阱。