diff options
| author | Kitson Kelly <me@kitsonkelly.com> | 2018-10-04 21:20:14 +1000 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-04 12:31:39 -0400 |
| commit | ce9148943c4ffa43252e3692014489ebcff3d51e (patch) | |
| tree | 07510ec5cc8ba385c137baaeeb3dff3192c68ce6 /js/platform.ts | |
| parent | 5307aa94e14d99a226366a275e011a60161c9c39 (diff) | |
Move Platform from types to platform
Diffstat (limited to 'js/platform.ts')
| -rw-r--r-- | js/platform.ts | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/js/platform.ts b/js/platform.ts index 704ed0743..d1732f73f 100644 --- a/js/platform.ts +++ b/js/platform.ts @@ -1,3 +1,20 @@ -import { Platform } from "./types"; +// Do not add unsupported platforms. +export interface Platform { + /** + * The operating system CPU architecture + */ + arch: "x64"; + + /** + * The operating system platform + */ + os: "mac" | "win" | "linux"; +} + // 'platform' is injected by rollup.config.js at compile time. -export const platform: Platform = {}; +export const platform: Platform = { + // tslint:disable:no-any + arch: "" as any, + os: "" as any + // tslint:disable:any +}; |
