2019-02-06 18:27:20 +00:00
|
|
|
/// <reference path="../electron.d.ts" />
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This file augments the Electron TS namespace with the internal APIs
|
|
|
|
* that are not documented but are used by Electron internally
|
|
|
|
*/
|
|
|
|
|
|
|
|
declare namespace Electron {
|
2019-02-14 07:05:49 +00:00
|
|
|
enum ProcessType {
|
|
|
|
browser = 'browser',
|
|
|
|
renderer = 'renderer',
|
|
|
|
worker = 'worker'
|
|
|
|
}
|
|
|
|
|
2019-02-06 18:27:20 +00:00
|
|
|
interface App {
|
|
|
|
setVersion(version: string): void;
|
|
|
|
setDesktopName(name: string): void;
|
|
|
|
setAppPath(path: string | null): void;
|
|
|
|
}
|
2019-02-14 07:05:49 +00:00
|
|
|
|
|
|
|
interface SerializedError {
|
|
|
|
message: string;
|
|
|
|
stack?: string,
|
|
|
|
name: string,
|
|
|
|
from: Electron.ProcessType,
|
|
|
|
cause: SerializedError,
|
|
|
|
__ELECTRON_SERIALIZED_ERROR__: true
|
|
|
|
}
|
2019-02-06 18:27:20 +00:00
|
|
|
}
|