Return types do not indicate nullability
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- api
Research direction
Start by locating GitApi.getRepositories(project) and tracing how its return type is declared and documented. Review the other API methods that can return null, then verify that their public TypeScript return types reflect that behavior. Done means the affected API surface no longer promises non-null results where null is possible.
Written by the indexing model from the issue text.
Description
Many methods can return null, but the API surface does not reflect this.
For example, GitApi.getRepositories(project) returns null if the project doesn't exist, but the return type is misleadingly listed as Promise<GitRepository[]>.
- Dominant language
- TypeScript
- Stars
- 502
- Forks
- 244
- Avg merge
- 2h 24m
- Merged PRs (30d)
- 2
Contributor guide
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/azure-devops-node-api
-
Area: NodeApi triage
Difficulty 1/5 Under an hour Newbie friendliness 78/100
microsoft/azure-devops-node-api#667 · 2 comments ·
-
Expose Accounts API OpenArea: NodeApi bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoft/azure-devops-node-api#522 · 31 comments · 1 reaction ·
-
Area: NodeApi triage
Difficulty 3/5 1-2 days Newbie friendliness 55/100
microsoft/azure-devops-node-api#676 · 2 reactions ·
All issues in microsoft/azure-devops-node-api
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·