Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add missing parameter types #39013

Closed
wants to merge 2 commits into from

Commits on Jun 12, 2021

  1. doc: add missing parameter types

    Both of the `clearTimeout()` and `clearInterval()` functions in the `timers` lib accepts the ID of the `Timeout` object returned by the functions in a number or string type, e.g.
    ```js
    const t = setTimeout(console.log, 5000, 'test');
    
    clearTimeout(t[Symbol.toPrimitive]());
    ```
    VoltrexKeyva committed Jun 12, 2021
    Configuration menu
    Copy the full SHA
    b375675 View commit details
    Browse the repository at this point in the history
  2. fixup! doc: add missing parameter types

    Change "ID" to "primitive" and reference `timeout[Symbol.toPrimitive]()` with a hyperlink.
    VoltrexKeyva committed Jun 12, 2021
    Configuration menu
    Copy the full SHA
    73032bc View commit details
    Browse the repository at this point in the history