Add OSType enum (#1909)

This commit is contained in:
Vincent LE GOFF 2019-03-11 19:23:11 +01:00 committed by Ryan Dahl
parent 75a500ba81
commit 830ce93785
2 changed files with 9 additions and 2 deletions

View file

@ -7,12 +7,19 @@ export interface BuildInfo {
arch: "x64";
/** The operating system platform. */
os: "mac" | "win" | "linux";
os: OSType;
/** The GN build arguments */
gnArgs: string;
}
/** The operating system platform. */
export enum OSType {
mac = "mac",
win = "win",
linux = "linux"
}
// 'build' is injected by rollup.config.js at compile time.
export const build: BuildInfo = {
/* eslint-disable @typescript-eslint/no-explicit-any */