Skip to content

Instantly share code, notes, and snippets.

@diegovgsilva95
Created November 28, 2017 22:52
Show Gist options
  • Save diegovgsilva95/5643a5e24aa35c6fba0bc0e382addefd to your computer and use it in GitHub Desktop.
Save diegovgsilva95/5643a5e24aa35c6fba0bc0e382addefd to your computer and use it in GitHub Desktop.
JSDoc for Timeout object (timers.setInterval / timers.setTimeout, prototype of "this" at callback context) #nodejs
/**
* @typedef {object} Timeout
* @prop {boolean} _called
* @prop {number} _idleTimeout
* @prop {object} _idlePrev
* @prop {object} _idleNext
* @prop {number} _idleStart
* @prop {function} _onTimeout
* @prop {any[]} _timerArgs
* @prop {number} _repeat
* @prop {boolean} _destroyed
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment