forked from Onek8/LNXSDK
Update
This commit is contained in:
@ -38,7 +38,7 @@ import js.Error;
|
||||
/**
|
||||
Enumeration of events emitted by the Process class.
|
||||
**/
|
||||
@:enum abstract ProcessEvent<T:haxe.Constraints.Function>(Event<T>) to Event<T> {
|
||||
enum abstract ProcessEvent<T:haxe.Constraints.Function>(Event<T>) to Event<T> {
|
||||
/**
|
||||
Emitted when the process is about to exit.
|
||||
There is no way to prevent the exiting of the event loop at this point,
|
||||
@ -262,6 +262,21 @@ extern class Process extends EventEmitter<Process> {
|
||||
**/
|
||||
var platform:String;
|
||||
|
||||
/**
|
||||
The PID of the parent process
|
||||
**/
|
||||
var ppid:Int;
|
||||
|
||||
/**
|
||||
The metadata of the current release
|
||||
**/
|
||||
var release:Release;
|
||||
|
||||
/**
|
||||
Used for diagnostic reports
|
||||
**/
|
||||
var report:Report;
|
||||
|
||||
/**
|
||||
Returns an object describing the memory usage of the Node process measured in bytes.
|
||||
**/
|
||||
@ -349,3 +364,11 @@ typedef MemoryUsage = {
|
||||
heapTotal:Float,
|
||||
heapUsed:Float
|
||||
}
|
||||
|
||||
typedef Release = {
|
||||
name:String,
|
||||
?sourceUrl:String,
|
||||
?headersUrl:String,
|
||||
?libUrl:String,
|
||||
?lts:String
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user