summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.shared_globals.d.ts
diff options
context:
space:
mode:
authorGeert-Jan Zwiers <geertjanzwiers@protonmail.com>2022-05-13 18:36:00 +0200
committerGitHub <noreply@github.com>2022-05-13 18:36:00 +0200
commit0568be863ba5e02bdbd3889f66281fae356f7263 (patch)
tree27e19ef52beea9fbd0a4c281829be59660718de9 /cli/dts/lib.deno.shared_globals.d.ts
parent939a070c8cbe77626e07a01646c324b2ae5ac740 (diff)
feat(ext/web): add performance.toJSON (#14548)
Diffstat (limited to 'cli/dts/lib.deno.shared_globals.d.ts')
-rw-r--r--cli/dts/lib.deno.shared_globals.d.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.shared_globals.d.ts b/cli/dts/lib.deno.shared_globals.d.ts
index b96c56dba..d430c16b0 100644
--- a/cli/dts/lib.deno.shared_globals.d.ts
+++ b/cli/dts/lib.deno.shared_globals.d.ts
@@ -450,6 +450,7 @@ declare class Worker extends EventTarget {
declare type PerformanceEntryList = PerformanceEntry[];
declare class Performance {
+ /** Returns a timestamp representing the start of the performance measurement. */
readonly timeOrigin: number;
constructor();
@@ -490,6 +491,9 @@ declare class Performance {
* ```
*/
now(): number;
+
+ /** Returns a JSON representation of the performance object. */
+ toJSON(): any;
}
declare var performance: Performance;