diff options
Diffstat (limited to 'cli/dts')
-rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 18 | ||||
-rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 14 |
2 files changed, 18 insertions, 14 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index 2032757bb..8ebf16150 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -90,6 +90,24 @@ declare namespace Deno { /** The current process id of the runtime. */ export const pid: number; + /** + * The pid of the current process's parent. + */ + export const ppid: number; + + export interface MemoryUsage { + rss: number; + heapTotal: number; + heapUsed: number; + external: number; + } + + /** + * Returns an object describing the memory usage of the Deno process measured + * in bytes. + */ + export function memoryUsage(): MemoryUsage; + /** Reflects the `NO_COLOR` environment variable at program start. * * See: https://no-color.org/ */ diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index 92858ba31..828211c5b 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -1070,11 +1070,6 @@ declare namespace Deno { export function hostname(): string; /** **UNSTABLE**: New API, yet to be vetted. - * The pid of the current process's parent. - */ - export const ppid: number; - - /** **UNSTABLE**: New API, yet to be vetted. * A custom HttpClient for use with `fetch`. * * ```ts @@ -1171,15 +1166,6 @@ declare namespace Deno { bytesReceived: number; } - export interface MemoryUsage { - rss: number; - heapTotal: number; - heapUsed: number; - external: number; - } - - export function memoryUsage(): MemoryUsage; - export interface RequestEvent { readonly request: Request; respondWith(r: Response | Promise<Response>): Promise<void>; |