From 0568be863ba5e02bdbd3889f66281fae356f7263 Mon Sep 17 00:00:00 2001 From: Geert-Jan Zwiers Date: Fri, 13 May 2022 18:36:00 +0200 Subject: feat(ext/web): add performance.toJSON (#14548) --- cli/dts/lib.deno.shared_globals.d.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/dts/lib.deno.shared_globals.d.ts') 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; -- cgit v1.2.3