summaryrefslogtreecommitdiff
path: root/js/types.ts
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2018-09-19 23:13:59 -0700
committerRyan Dahl <ry@tinyclouds.org>2018-09-20 02:13:59 -0400
commitfab4bdf40d1fe1a53d00dbc0bc902c71d4446403 (patch)
tree843aa0d5cf867fdcefeee991655332da372d9b47 /js/types.ts
parent017ef096dfb0592d828804175e582895a3f39954 (diff)
Add deno.arch/deno.platform (#773)
Diffstat (limited to 'js/types.ts')
-rw-r--r--js/types.ts26
1 files changed, 26 insertions, 0 deletions
diff --git a/js/types.ts b/js/types.ts
index 7af0a5201..7a7bc44d9 100644
--- a/js/types.ts
+++ b/js/types.ts
@@ -151,3 +151,29 @@ declare global {
stackTraceLimit: number;
}
}
+
+// 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";