Using the Type Checker example gives type errors with typescript 3.6.4
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
调研方向
从链接的“Using the Type Checker”示例开始,检查第 65 行和第 99 行附近的 docGenerator.ts。使用 TypeScript 3.6.4 重现报告的错误,然后更新示例,使其能够成功通过类型检查,并验证两个诊断都已解决。
由索引模型根据 Issue 内容生成。
描述
This example gives type errors.
docGenerator.ts:65:53 - error TS2554: Expected 1 arguments, but got 0.
documentation: ts.displayPartsToString(symbol.getDocumentationComment()),
docGenerator.ts:99:36 - error TS2345: Argument of type 'Node' is not assignable to parameter of type 'Declaration'.
Property '_declarationBrand' is missing in type 'Node' but required in type 'Declaration'.
(ts.getCombinedModifierFlags(node) & ts.ModifierFlags.Export) !== 0 ||
- 主要语言
- JavaScript
- 星标
- 759
- 派生
- 315
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/TypeScript-wiki 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 50/100
microsoft/TypeScript-wiki#327 ·
-
难度 5/5 一周以上 新手友好度 15/100
microsoft/TypeScript-wiki#323 ·
-
难度 2/5 1-3 小时 新手友好度 25/100
microsoft/TypeScript-wiki#307 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 35/100
microsoft/TypeScript-wiki#293 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 20/100
microsoft/TypeScript-wiki#266 ·
查看 microsoft/TypeScript-wiki 的全部 Issue
相似的 Issue
-
Complexity: Small P-Feature: Projects page ready for merge team role: back end/devOps role: front end size: 0.25pt
难度 1/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 67/100
bellingcat/toolkit#905 ·
-
self-care self-care:docs-build-time-investigator
难度 2/5 半天 新手友好度 76/100
githubnext/gh-aw-cao#14191 ·
维护者通常 1 天内回复
-
effort:low impact:medium RAG status: auto-triaged
难度 2/5 1-3 小时 新手友好度 84/100
mastra-ai/mastra#25229 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
sugarlabs/musicblocks#8984 ·
维护者通常 1 天内回复