Using the Type Checker example gives type errors with typescript 3.6.4
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- documentation
Research direction
Start with the linked “Using the Type Checker” example and inspect docGenerator.ts around lines 65 and 99. Reproduce the reported errors with TypeScript 3.6.4, then update the example so it type-checks successfully and verify both diagnostics are resolved.
Written by the indexing model from the issue text.
Description
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 ||
- Dominant language
- JavaScript
- Stars
- 759
- Forks
- 315
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/TypeScript-wiki
-
Difficulty 1/5 Under an hour Newbie friendliness 50/100
microsoft/TypeScript-wiki#327 ·
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
microsoft/TypeScript-wiki#323 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
microsoft/TypeScript-wiki#307 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
microsoft/TypeScript-wiki#293 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
microsoft/TypeScript-wiki#266 ·
All issues in microsoft/TypeScript-wiki
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
palladius/rails8-app-on-gcp#145 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
dotenvx/dotenv-vscode#139 ·
-
test-change-proposal
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
web-platform-tests/interop#1455 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
corsairdev/corsair#1764 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100