Recast.js
Preparing search index...
RecastEventEmitter
Interface RecastEventEmitter
interface
RecastEventEmitter
{
on
(
type
:
string
,
listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
;
once
(
type
:
string
,
listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
;
off
(
type
:
string
,
listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
;
removeAllListeners
(
type
?:
string
)
:
this
;
emit
(
type
:
string
,
...
args
:
any
[]
)
:
this
;
deferEmit
(
type
:
string
,
...
args
:
any
[]
)
:
this
;
eventNames
()
:
string
[]
;
}
Index
Methods
on
once
off
remove
All
Listeners
emit
defer
Emit
event
Names
Methods
on
on
(
type
:
string
,
listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
type
:
string
listener
:
(
...
args
:
any
[]
)
=>
void
Returns
this
once
once
(
type
:
string
,
listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
type
:
string
listener
:
(
...
args
:
any
[]
)
=>
void
Returns
this
off
off
(
type
:
string
,
listener
:
(
...
args
:
any
[]
)
=>
void
)
:
this
Parameters
type
:
string
listener
:
(
...
args
:
any
[]
)
=>
void
Returns
this
remove
All
Listeners
removeAllListeners
(
type
?:
string
)
:
this
Parameters
Optional
type
:
string
Returns
this
emit
emit
(
type
:
string
,
...
args
:
any
[]
)
:
this
Parameters
type
:
string
...
args
:
any
[]
Returns
this
defer
Emit
deferEmit
(
type
:
string
,
...
args
:
any
[]
)
:
this
Emits on the next microtask tick.
Parameters
type
:
string
...
args
:
any
[]
Returns
this
event
Names
eventNames
()
:
string
[]
Returns the list of registered event type names.
Returns
string
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
on
once
off
remove
All
Listeners
emit
defer
Emit
event
Names
Recast.js
Loading...
Emits on the next microtask tick.