summaryrefslogtreecommitdiff
path: root/js/platform.ts
blob: 9061b4ed3f89889db2d038eaf2d0798edd8f444f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.

// 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 = {
  // tslint:disable:no-any
  arch: "" as any,
  os: "" as any
  // tslint:disable:any
};