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! doc: add missing parameter types
Change "ID" to "primitive" and reference `timeout[Symbol.toPrimitive]()` with a hyperlink.
  • Loading branch information
VoltrexKeyva authored Jun 12, 2021
commit 73032bcf813642e854e3b1c3025acb223a880f19
5 changes: 3 additions & 2 deletions doc/api/timers.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ added: v0.0.1
-->

* `timeout` {Timeout|string|number} A `Timeout` object as returned by [`setInterval()`][]
or the ID of the `Timeout` object as a string or a number.
or the [primitive][] of the `Timeout` object as a string or a number.

Cancels a `Timeout` object created by [`setInterval()`][].

Expand All @@ -318,7 +318,7 @@ added: v0.0.1
-->

* `timeout` {Timeout|string|number} A `Timeout` object as returned by [`setTimeout()`][]
or the ID of the `Timeout` object as a string or a number.
or the [primitive][] of the `Timeout` object as a string or a number.

Cancels a `Timeout` object created by [`setTimeout()`][].

Expand Down Expand Up @@ -480,3 +480,4 @@ const interval = 100;
[`setTimeout()`]: timers.md#timers_settimeout_callback_delay_args
[`util.promisify()`]: util.md#util_util_promisify_original
[`worker_threads`]: worker_threads.md
[primitive]: timers.md#timers_timeout_symbol_toprimitive