summaryrefslogtreecommitdiff
path: root/js/types.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-02 12:25:49 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-10-03 16:59:00 -0400
commitd39055d79bc376924fc2ffe138c26ba6b50aa33f (patch)
tree1abc6e8932dd5227c0d34c7fe9b875284317ce9f /js/types.ts
parent0cdf1f451d0b3c67f2d7c0c2817f712eb6c87987 (diff)
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".
Diffstat (limited to 'js/types.ts')
-rw-r--r--js/types.ts30
1 files changed, 5 insertions, 25 deletions
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";
+}