narraleaf
Version:
Create your visual novel with Electron and React
26 lines (25 loc) • 737 B
TypeScript
import { ValuesOf } from "../../utils/types";
export declare function safeExecuteFn<T>(fn: any): any;
export declare const PlatformSystem: {
readonly aix: "aix";
readonly android: "android";
readonly darwin: "darwin";
readonly freebsd: "freebsd";
readonly haiku: "haiku";
readonly linux: "linux";
readonly openbsd: "openbsd";
readonly sunos: "sunos";
readonly win32: "win32";
readonly cygwin: "cygwin";
readonly netbsd: "netbsd";
};
export type PlatformInfo = {
system: ValuesOf<typeof PlatformSystem>;
arch: NodeJS.Architecture;
nodeVersion: string;
pid: number;
cwd: string;
};
export declare class Platform {
static getInfo(process: NodeJS.Process): PlatformInfo;
}