From fe1ba2ad6affeb6c0e97c73171d8fa3f31dde73e Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Thu, 14 Oct 2021 13:24:58 +0200 Subject: chore: convert files to TS (#2066) --- src/environment.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/environment.ts') diff --git a/src/environment.ts b/src/environment.ts index ce2a77e7a..6b68ef432 100644 --- a/src/environment.ts +++ b/src/environment.ts @@ -1,6 +1,6 @@ // Note: This file has now become devoid of all references to values deduced from the remote process - all those now live in the `environment-remote.js` file -import os from 'os'; +import { platform, arch, release } from 'os'; export const isMac = process.platform === 'darwin'; export const isWindows = process.platform === 'win32'; @@ -10,9 +10,9 @@ export const electronVersion = process.versions.electron; export const chromeVersion = process.versions.chrome; export const nodeVersion = process.versions.node; -export const osPlatform = os.platform(); -export const osArch = os.arch(); -export const osRelease = os.release(); +export const osPlatform = platform(); +export const osArch = arch(); +export const osRelease = release(); export const is64Bit = osArch.match(/64/); // for accelerator, show the shortform that electron/OS understands -- cgit v1.2.3-54-g00ecf