mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
docs(cli): correct example (#9136)
This commit is contained in:
parent
69fb2b31b3
commit
fc45a19801
1 changed files with 2 additions and 2 deletions
4
cli/dts/lib.deno.shared_globals.d.ts
vendored
4
cli/dts/lib.deno.shared_globals.d.ts
vendored
|
@ -315,7 +315,7 @@ declare function setInterval(
|
||||||
/** Cancels a timed, repeating action which was previously started by a call
|
/** Cancels a timed, repeating action which was previously started by a call
|
||||||
* to `setInterval()`
|
* to `setInterval()`
|
||||||
*
|
*
|
||||||
* const id = setInterval(()= > {console.log('hello');}, 500);
|
* const id = setInterval(() => {console.log('hello');}, 500);
|
||||||
* ...
|
* ...
|
||||||
* clearInterval(id);
|
* clearInterval(id);
|
||||||
*/
|
*/
|
||||||
|
@ -323,7 +323,7 @@ declare function clearInterval(id?: number): void;
|
||||||
|
|
||||||
/** Cancels a scheduled action initiated by `setTimeout()`
|
/** Cancels a scheduled action initiated by `setTimeout()`
|
||||||
*
|
*
|
||||||
* const id = setTimeout(()= > {console.log('hello');}, 500);
|
* const id = setTimeout(() => {console.log('hello');}, 500);
|
||||||
* ...
|
* ...
|
||||||
* clearTimeout(id);
|
* clearTimeout(id);
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue