From d39055d79bc376924fc2ffe138c26ba6b50aa33f Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 2 Oct 2018 12:25:49 -0400 Subject: Clean up deno.platform Renames: deno.platform -> deno.platform.os deno.arch -> deno.platform.arch Removes unsupported operating systems and CPU architectures from the types. Uses the string "win" instead of "win32". --- js/types.ts | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) (limited to 'js/types.ts') diff --git a/js/types.ts b/js/types.ts index 7a7bc44d9..3ef8f81e5 100644 --- a/js/types.ts +++ b/js/types.ts @@ -152,28 +152,8 @@ declare global { } } -// Based on Node's arch -export type DenoArch = - | "arm" - | "arm64" - | "ia32" - | "mips" - | "mipsel" - | "ppc" - | "ppc64" - | "s390" - | "s390x" - | "x32" - | "x64" - | "unknown"; - -export type DenoPlatform = - | "aix" - | "darwin" - | "freebsd" - | "linux" - | "openbsd" - | "sunos" - | "win32" - | "android" - | "unknown"; +// Do not add unsupported platforms. +export interface Platform { + arch?: "x64"; + os?: "mac" | "win" | "linux"; +} -- cgit v1.2.3