electron-util
Version:
Useful utilities for Electron apps and modules
33 lines (32 loc) • 736 B
TypeScript
type Is = {
/**
Running on macOS.
*/
readonly macos: boolean;
/**
Running on Linux.
*/
readonly linux: boolean;
/**
Running on Windows.
*/
readonly windows: boolean;
/**
Running on the [main process](https://electronjs.org/docs/tutorial/quick-start/#main-process).
*/
readonly main: boolean;
/**
Running on the [renderer process](https://electronjs.org/docs/tutorial/quick-start/#renderer-process).
*/
readonly renderer: boolean;
/**
The app is an Mac App Store build.
*/
readonly macAppStore: boolean;
/**
The app is a Windows Store AppX build.
*/
readonly windowsStore: boolean;
};
export declare const is: Is;
export {};