UNPKG

744 BTypeScriptView Raw
1export declare const isWindows: boolean;
2export declare const isOSX: boolean;
3export declare type CMD = [string, string[]];
4export declare function cmd(command: string, ...args: string[]): CMD;
5export declare namespace OS {
6 /**
7 * Enumeration of the supported operating systems.
8 */
9 enum Type {
10 Windows = "Windows",
11 Linux = "Linux",
12 OSX = "OSX"
13 }
14 /**
15 * Returns with the type of the operating system. If it is neither [Windows](isWindows) nor [OS X](isOSX), then
16 * it always return with the `Linux` OS type.
17 */
18 function type(): OS.Type;
19 const backend: {
20 type: typeof type;
21 isWindows: boolean;
22 isOSX: boolean;
23 };
24}
25//# sourceMappingURL=os.d.ts.map
\No newline at end of file