Skip to content

docs(worker): improve JSDoc and strengthen error handling - #5320

Closed
Kushal Meghani (KushalMeghani1644) wants to merge 8 commits into
microsoft:mainfrom
KushalMeghani1644:fix
Closed

docs(worker): improve JSDoc and strengthen error handling#5320
Kushal Meghani (KushalMeghani1644) wants to merge 8 commits into
microsoft:mainfrom
KushalMeghani1644:fix

Conversation

@KushalMeghani1644

Copy link
Copy Markdown

docs(worker): improve JSDoc and error handling in cpu-profile-summarizer

- Added detailed JSDoc comments for better clarity and maintainability
- Narrowed  to properly handle Error vs non-Error cases
- Removed unused  field from ILocalTimeInfo
@KushalMeghani1644

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@iclanton

Copy link
Copy Markdown
Member

You're missing a changelog entry. Can you run rush change and provide a summary of your change, and then check in the file that it generates?

@iclanton Ian Clanton-Thuon (iclanton) moved this from Needs triage to In Progress in Bug Triage Aug 27, 2025
@KushalMeghani1644

Copy link
Copy Markdown
Author

Hey Ian Clanton-Thuon (@iclanton) I have added the changelog file as you requested.

Comment thread apps/cpu-profile-summarizer/src/worker.ts Outdated
Comment thread apps/cpu-profile-summarizer/src/worker.ts Outdated
Comment thread apps/cpu-profile-summarizer/src/worker.ts Outdated
Comment thread common/changes/@rushstack/cpu-profile-summarizer/fix_2025-08-28-09-31.json Outdated
Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
…8-09-31.json

Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
@KushalMeghani1644

Copy link
Copy Markdown
Author

Ian Clanton-Thuon (@iclanton) I removed the explicit type since TypeScript can infer that i is a number from the initialization. However, I understand if you prefer declaring types explicitly, I have added it back though, as suggested by you :)

@github-project-automation github-project-automation Bot moved this from In Progress to Closed in Bug Triage Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants