From e0ca60e7707b5896ce67301aefd1de4a76e3cf75 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 28 Apr 2020 12:35:23 -0400 Subject: 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" --- cli/js/lib.deno.ns.d.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'cli/js/lib.deno.ns.d.ts') 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; -- cgit v1.2.3