Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4499458
child_process.d.ts
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
child_process.d.ts
View Options
declare
module
'child_process'
{
interface
SpawnResult
{
stdout
:
string
;
stderr
:
string
;
exitCode
:
number
;
signalCode
:
number
|
null
;
pid
:
number
;
}
interface
ChildProcess
{
stdout
:
string
;
stderr
:
string
;
exitCode
:
number
|
null
;
signalCode
:
number
|
null
;
pid
:
number
;
killed
:
boolean
;
on
(
event
:
'exit'
,
listener
:
(
code
:
number
,
signal
:
number
|
null
)
=>
void
)
:
ChildProcess
;
on
(
event
:
'close'
,
listener
:
(
code
:
number
,
signal
:
number
|
null
)
=>
void
)
:
ChildProcess
;
on
(
event
:
'error'
,
listener
:
(
err
:
Error
)
=>
void
)
:
ChildProcess
;
on
(
event
:
'data'
,
listener
:
(
data
:
string
)
=>
void
)
:
ChildProcess
;
once
(
event
:
string
,
listener
:
(
...args
:
unknown
[])
=>
void
)
:
ChildProcess
;
kill
(
signal?
:
number
)
:
boolean
;
write
(
data
:
string
)
:
void
;
end
()
:
void
;
}
interface
SpawnOptions
{
cwd?
:
string
;
shell?
:
boolean
;
detached?
:
boolean
;
}
interface
ExecOptions
{
cwd?
:
string
;
}
interface
SpawnSyncOptions
{
input?
:
string
;
}
interface
ForkOptions
{
execArgv?
:
string
[];
}
function
spawn
(
command
:
string
,
args?
:
string
[],
options?
:
SpawnOptions
)
:
ChildProcess
&
Promise
<
SpawnResult
>
;
function
exec
(
command
:
string
,
options?
:
ExecOptions
)
:
Promise
<
SpawnResult
>
;
function
execSync
(
command
:
string
)
:
string
;
function
spawnSync
(
command
:
string
,
args?
:
string
[],
options?
:
SpawnSyncOptions
)
:
SpawnResult
;
function
fork
(
module
Path
:
string
,
options?
:
ForkOptions
)
:
ChildProcess
&
Promise
<
SpawnResult
>
;
}
declare
module
'ant:child_process'
{
export
*
from
'events'
;
}
declare
module
'node:child_process'
{
export
*
from
'events'
;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 3, 8:02 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
538229
Default Alt Text
child_process.d.ts (1 KB)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment