Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! typings: add JSDoc typings for timers
Fixed parameter type of `clearTimeout()` and `clearInterval()`.
  • Loading branch information
VoltrexKeyva authored Jun 11, 2021
commit e94392cd5aad762c675d841eec58bf5c46a1fad2
4 changes: 2 additions & 2 deletions lib/timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ ObjectDefineProperty(setTimeout, customPromisify, {

/**
* Cancels a timeout.
* @param {Timeout} timer
* @param {Timeout | string | number} timer
* @returns {void}
*/
function clearTimeout(timer) {
Expand Down Expand Up @@ -238,7 +238,7 @@ function setInterval(callback, repeat, arg1, arg2, arg3) {

/**
* Cancels an interval.
* @param {Timeout} timer
* @param {Timeout | string | number} timer
* @returns {void}
*/
function clearInterval(timer) {
Expand Down