Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
domain
Domain
Class Domain
Hierarchy
EventEmitter
Domain
Index
Methods
add
addListener
bind
dispose
emit
intercept
listeners
on
once
remove
removeAllListeners
removeListener
run
setMaxListeners
Methods
public
add
(
emitter
:
EventEmitter
)
Parameters
emitter:
EventEmitter
public
addListener
(
event
:
string
, listener
:
Function
)
:
Domain
Parameters
event:
string
listener:
Function
Returns
Domain
public
bind
(
cb
:
(err: Error, data: any) => any
)
:
any
Parameters
cb:
(err: Error, data: any) => any
Returns
any
public
dispose
(
)
public
emit
(
event
:
string
, args
?:
Array<any>
)
:
boolean
Parameters
event:
string
args?:
Array<any>
optional
Returns
boolean
public
intercept
(
cb
:
(data: any) => any
)
:
any
Parameters
cb:
(data: any) => any
Returns
any
public
listeners
(
event
:
string
)
:
Array<Function>
Parameters
event:
string
Returns
Array<Function>
public
on
(
event
:
string
, listener
:
Function
)
:
Domain
Parameters
event:
string
listener:
Function
Returns
Domain
public
once
(
event
:
string
, listener
:
Function
)
:
Domain
Parameters
event:
string
listener:
Function
Returns
Domain
public
remove
(
emitter
:
EventEmitter
)
Parameters
emitter:
EventEmitter
public
removeAllListeners
(
event
?:
string
)
:
Domain
Parameters
event?:
string
optional
Returns
Domain
public
removeListener
(
event
:
string
, listener
:
Function
)
:
Domain
Parameters
event:
string
listener:
Function
Returns
Domain
public
run
(
fn
:
Function
)
Parameters
fn:
Function
public
setMaxListeners
(
n
:
number
)
Parameters
n:
number
Globals
JSONStream
NodeJS
assert
buffer
child_process
cluster
crypto
dgram
dns
domain
events
fs
http
https
net
os
path
punycode
querystring
readline
repl
stream
string_decoder
tls
tty
url
util
vm
zlib
Domain
add
addListener
bind
dispose
emit
intercept
listeners
on
once
remove
removeAllListeners
removeListener
run
setMaxListeners
create