Add Electron specific versions to process.versions (#10320)

This commit is contained in:
Milan Burda
2016-07-28 17:24:22 +02:00
committed by Masahiro Wakame
parent f305105c13
commit bf140ce89a
3 changed files with 26 additions and 10 deletions

View File

@@ -5107,6 +5107,18 @@ interface File {
// https://github.com/electron/electron/blob/master/docs/api/process.md
declare namespace NodeJS {
interface ProcessVersions {
/**
* Electron's version string.
*/
electron: string;
/**
* Chrome's version string.
*/
chrome: string;
}
interface Process {
/**
* Setting this to true can disable the support for asar archives in Node's built-in modules.