summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorJohn Gardner <gardnerjohng@gmail.com>2020-06-11 13:00:29 +1000
committerGitHub <noreply@github.com>2020-06-10 23:00:29 -0400
commitca5b5ba530eccd1a4ed34bc475250daae489190a (patch)
treedaf31cb89b47943707ca0590174a4fd4750f006c /cli/js/lib.deno.unstable.d.ts
parenta1b37f177be848ce3c3248b6b835f8999e36afff (diff)
feat: Add Deno.mainModule (#6180)
Diffstat (limited to 'cli/js/lib.deno.unstable.d.ts')
-rw-r--r--cli/js/lib.deno.unstable.d.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/cli/js/lib.deno.unstable.d.ts b/cli/js/lib.deno.unstable.d.ts
index aebd7f964..dc50416fc 100644
--- a/cli/js/lib.deno.unstable.d.ts
+++ b/cli/js/lib.deno.unstable.d.ts
@@ -1245,4 +1245,7 @@ declare namespace Deno {
* Requires `allow-env` permission.
*/
export function hostname(): string;
+
+ /** **UNSTABLE**: The URL of the file that was originally executed from the command-line. */
+ export const mainModule: string;
}