From 52c1017a74059655f9424f7ceb3f0c74dcc7f3be Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Mon, 10 Aug 2020 21:41:51 +0100 Subject: feat: Stabilize Deno.mainModule (#6993) --- cli/dts/lib.deno.ns.d.ts | 3 +++ cli/dts/lib.deno.unstable.d.ts | 9 +++------ 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'cli/dts') diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index f551ea361..5cb0f432b 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -2025,4 +2025,7 @@ declare namespace Deno { * called when `Deno.inspect()` is called, or when the object is logged to * the console. */ export const customInspect: unique symbol; + + /** The URL of the entrypoint module entered from the command-line. */ + export const mainModule: string; } diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index a7203f778..8a3e872df 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -1098,9 +1098,6 @@ declare namespace Deno { */ export function hostname(): string; - /** **UNSTABLE**: The URL of the file that was originally executed from the command-line. */ - export const mainModule: string; - /** **UNSTABLE**: new API, yet to be vetted. * Synchronously truncates or extends the specified file stream, to reach the * specified `len`. If `len` is not specified then the entire file contents @@ -1217,7 +1214,7 @@ declare namespace Deno { /** **UNSTABLE**: New API, yet to be vetted. * A custom HttpClient for use with `fetch`. - * + * * ```ts * const client = new Deno.createHttpClient({ caFile: "./ca.pem" }); * const req = await fetch("https://myserver.com", { client }); @@ -1233,7 +1230,7 @@ declare namespace Deno { */ interface CreateHttpClientOptions { /** A certificate authority to use when validating TLS certificates. - * + * * Requires `allow-read` permission. */ caFile?: string; @@ -1241,7 +1238,7 @@ declare namespace Deno { /** **UNSTABLE**: New API, yet to be vetted. * Create a custom HttpClient for to use with `fetch`. - * + * * ```ts * const client = new Deno.createHttpClient({ caFile: "./ca.pem" }); * const req = await fetch("https://myserver.com", { client }); -- cgit v1.2.3