@theia/core
Version:
Theia is a cloud & desktop IDE framework implemented in TypeScript.
32 lines • 983 B
TypeScript
export declare const isWindows: boolean;
export declare const isOSX: boolean;
export declare const EOL: string;
export declare type CMD = [string, string[]];
export declare function cmd(command: string, ...args: string[]): CMD;
export declare namespace OS {
/**
* Enumeration of the supported operating systems.
*/
enum Type {
Windows = "Windows",
Linux = "Linux",
OSX = "OSX"
}
/**
* Returns with the type of the operating system. If it is neither [Windows](isWindows) nor [OS X](isOSX), then
* it always return with the `Linux` OS type.
*/
function type(): OS.Type;
const backend: {
type: typeof type;
isWindows: boolean;
isOSX: boolean;
EOL: string;
};
}
export declare const OSBackendProviderPath = "/os";
export declare const OSBackendProvider: unique symbol;
export interface OSBackendProvider {
getBackendOS(): Promise<OS.Type>;
}
//# sourceMappingURL=os.d.ts.map