Skip to content

Conversation

@ShubhamOulkar
Copy link
Contributor

Description

rebase of #7759

Docs validation

https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout#return_value
https://nodejs.org/api/timers.html#class-timeout

Related Issues

closes #7672

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run pnpm format to ensure the code follows the style guide.
  • I have run pnpm test to check if all tests are passing.
  • I have run pnpm build to check if the website builds without errors.
  • I've covered new added functionality with unit tests if necessary.

@ShubhamOulkar ShubhamOulkar requested a review from a team as a code owner July 8, 2025 03:48
@vercel
Copy link

vercel bot commented Jul 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Jul 8, 2025 1:19pm

@avivkeller avivkeller changed the title docs: Clarify setTimeout() return type feat(learn): setTimeout() return type Jul 8, 2025
@avivkeller
Copy link
Member

Please add the other author as a Co-Author

Co-authored-by: Aviv Keller <me@aviv.sh>
Co-authored-by: vishal <vishalkumarvkvk988@gmail.com>
@avivkeller avivkeller added the github_actions:pull-request Trigger Pull Request Checks label Jul 10, 2025
@avivkeller avivkeller enabled auto-merge July 10, 2025 11:20
@github-actions github-actions bot removed the github_actions:pull-request Trigger Pull Request Checks label Jul 10, 2025
@codecov
Copy link

codecov bot commented Jul 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.64%. Comparing base (a356572) to head (5ae63d1).
Report is 10 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7960      +/-   ##
==========================================
- Coverage   73.68%   73.64%   -0.05%     
==========================================
  Files          96       96              
  Lines        8354     8354              
  Branches      219      220       +1     
==========================================
- Hits         6156     6152       -4     
- Misses       2197     2201       +4     
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@avivkeller avivkeller added this pull request to the merge queue Jul 10, 2025
Merged via the queue into nodejs:main with commit cc36077 Jul 10, 2025
13 checks passed
@ShubhamOulkar ShubhamOulkar deleted the update-timers-return-type branch July 25, 2025 07:56
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.

Clarify setTimeout return value in timers documentation (Node.js returns a Timeout object, not just an ID)

4 participants