diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-04-28 12:35:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 12:35:23 -0400 |
commit | e0ca60e7707b5896ce67301aefd1de4a76e3cf75 (patch) | |
tree | 4c5357a3d3482b14cbc3773374aa885e1e29e90c /cli/js/lib.deno.ns.d.ts | |
parent | f7ab19b1b7ba929f7fd1550e2e4ecebe91cd9ea3 (diff) |
BREAKING: Use LLVM target triple for Deno.build (#4948)
Deno.build.os values have changed to correspond to standard LLVM target triples
"win" -> "windows"
"mac" -> "darwin"
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r-- | cli/js/lib.deno.ns.d.ts | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts index 2f4ec2155..0c6f8ab18 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -40,7 +40,7 @@ declare namespace Deno { * * Deno.test({ * name: "example ignored test", - * ignore: Deno.build.os === "win" + * ignore: Deno.build.os === "windows" * fn(): void { * // This test is ignored only on Windows machines * }, @@ -2365,19 +2365,19 @@ declare namespace Deno { */ export function inspect(value: unknown, options?: InspectOptions): string; - export type OperatingSystem = "mac" | "win" | "linux"; - - export type Arch = "x64" | "arm64"; - - interface BuildInfo { - /** The CPU architecture. */ - arch: Arch; - /** The operating system. */ - os: OperatingSystem; - } - /** Build related information. */ - export const build: BuildInfo; + export const build: { + /** The LLVM target triple */ + target: string; + /** Instruction set architecture */ + arch: "x86_64"; + /** Operating system */ + os: "darwin" | "linux" | "windows"; + /** Computer vendor */ + vendor: string; + /** Optional environment */ + env?: string; + }; interface Version { deno: string; |