diff options
Diffstat (limited to 'cli/dts/lib.deno.shared_globals.d.ts')
-rw-r--r-- | cli/dts/lib.deno.shared_globals.d.ts | 4 |
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; |