diff options
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 +}; |