Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add JSDocs to improve maintainability and tooling support #129

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adam-coster
Copy link

@adam-coster adam-coster commented Mar 27, 2023

Before drafting a PR for #128, I wanted to make sure I had enough editor support to make safe changes. So I added JSDocs to most of the code.

All changes are non-functional except for one very minor name refactor.

This PR closes #130

@@ -16,6 +16,8 @@
"semver": "^7.3.2"
},
"devDependencies": {
"@types/node": "^18.15.10",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provides editor support for Typescript-aware IDEs.

@@ -213,28 +234,31 @@ class Updates {
PLATFORM_ARCH.WIN_IA32,
PLATFORM_ARCH.WIN_ARM64,
]) {
if (latest[key]) {
const rurl = `https://github.com/${account}/${repository}/releases/download/${latest[key].version}/RELEASES`;
const the_latest = latest[key];
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block contains the only functional changes I made. Their only purpose is to get better type support, since latest[key] shows up as Latest|undefined even inside the if(latest[key]){} block.

@adam-coster adam-coster marked this pull request as ready for review March 27, 2023 23:42
@adam-coster adam-coster requested a review from a team as a code owner March 27, 2023 23:42
@erickzhao erickzhao changed the title chore: Added JSDocs to improve maintainability and tooling support chore: add JSDocs to improve maintainability and tooling support Mar 29, 2023
@erickzhao erickzhao self-assigned this Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSDocs for better maintainability
2 participants