mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 00:29:09 -05:00
chore: fix typos in HrtimePermissionDescriptor and performance.now docs (#19469)
This commit is contained in:
parent
d32287d211
commit
faf6eaf2d3
2 changed files with 3 additions and 3 deletions
4
cli/tsc/dts/lib.deno.ns.d.ts
vendored
4
cli/tsc/dts/lib.deno.ns.d.ts
vendored
|
@ -4452,8 +4452,8 @@ declare namespace Deno {
|
||||||
|
|
||||||
/** The permission descriptor for the `allow-hrtime` permission, which
|
/** The permission descriptor for the `allow-hrtime` permission, which
|
||||||
* controls if the runtime code has access to high resolution time. High
|
* controls if the runtime code has access to high resolution time. High
|
||||||
* resolution time is consider sensitive information, because it can be used
|
* resolution time is considered sensitive information, because it can be used
|
||||||
* by malicious code to gain information about the host that it might
|
* by malicious code to gain information about the host that it might not
|
||||||
* otherwise have access to.
|
* otherwise have access to.
|
||||||
*
|
*
|
||||||
* @category Permissions */
|
* @category Permissions */
|
||||||
|
|
2
cli/tsc/dts/lib.deno.shared_globals.d.ts
vendored
2
cli/tsc/dts/lib.deno.shared_globals.d.ts
vendored
|
@ -579,7 +579,7 @@ declare class Performance extends EventTarget {
|
||||||
|
|
||||||
/** Returns a current time from Deno's start in milliseconds.
|
/** Returns a current time from Deno's start in milliseconds.
|
||||||
*
|
*
|
||||||
* Use the permission flag `--allow-hrtime` return a precise value.
|
* Use the permission flag `--allow-hrtime` to return a precise value.
|
||||||
*
|
*
|
||||||
* ```ts
|
* ```ts
|
||||||
* const t = performance.now();
|
* const t = performance.now();
|
||||||
|
|
Loading…
Reference in a new issue