mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 09:39:08 -05:00
Add OSType enum (#1909)
This commit is contained in:
parent
75a500ba81
commit
830ce93785
2 changed files with 9 additions and 2 deletions
|
@ -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 */
|
||||
|
|
|
@ -63,7 +63,7 @@ export { metrics, Metrics } from "./metrics";
|
|||
export { resources } from "./resources";
|
||||
export { run, RunOptions, Process, ProcessStatus } from "./process";
|
||||
export { inspect } from "./console";
|
||||
export { build, platform } from "./build";
|
||||
export { build, platform, OSType } from "./build";
|
||||
export { version } from "./version";
|
||||
export const args: string[] = [];
|
||||
|
||||
|
|
Loading…
Reference in a new issue