amitt - v1.0.20
Preparing search index...
AmittEmitter
Interface AmittEmitter<Keys, Events>
interface
AmittEmitter
<
Keys
extends
EventType
=
any
,
Events
extends
Map
<
string
,
Set
<
any
>
>
=
Map
<
string
,
Set
<
any
>
>
,
>
{
emit
<
U
extends
any
[]
=
[
]
,
V
extends
any
[]
=
any
[]
>
(
type
:
Keys
,
...
args
:
U
,
)
:
V
;
off
<
U
=
any
>
(
type
:
string
,
handler
:
U
)
:
boolean
;
on
<
U
extends
any
[]
=
[
]
,
V
=
any
>
(
type
:
string
,
handler
:
(
...
args
:
[
...
U
[]
,
{
once
:
boolean
;
type
:
Keys
}
]
,
)
=>
V
|
Promise
<
V
>
,
)
:
boolean
;
once
<
U
extends
any
[]
=
[
]
,
V
=
any
>
(
type
:
string
,
handler
:
(
...
args
:
[
...
U
[]
,
{
once
:
boolean
;
type
:
Keys
}
]
,
)
=>
V
|
Promise
<
V
>
,
)
:
boolean
;
}
Type Parameters
Keys
extends
EventType
=
any
Events
extends
Map
<
string
,
Set
<
any
>
>
=
Map
<
string
,
Set
<
any
>
>
Index
Methods
emit
off
on
once
Methods
emit
emit
<
U
extends
any
[]
=
[
]
,
V
extends
any
[]
=
any
[]
>
(
type
:
Keys
,
...
args
:
U
)
:
V
Type Parameters
U
extends
any
[]
=
[
]
V
extends
any
[]
=
any
[]
Parameters
type
:
Keys
...
args
:
U
Returns
V
off
off
<
U
=
any
>
(
type
:
string
,
handler
:
U
)
:
boolean
Type Parameters
U
=
any
Parameters
type
:
string
handler
:
U
Returns
boolean
on
on
<
U
extends
any
[]
=
[
]
,
V
=
any
>
(
type
:
string
,
handler
:
(
...
args
:
[
...
U
[]
,
{
once
:
boolean
;
type
:
Keys
}
]
,
)
=>
V
|
Promise
<
V
>
,
)
:
boolean
Type Parameters
U
extends
any
[]
=
[
]
V
=
any
Parameters
type
:
string
handler
:
(
...
args
:
[
...
U
[]
,
{
once
:
boolean
;
type
:
Keys
}
]
)
=>
V
|
Promise
<
V
>
Returns
boolean
once
once
<
U
extends
any
[]
=
[
]
,
V
=
any
>
(
type
:
string
,
handler
:
(
...
args
:
[
...
U
[]
,
{
once
:
boolean
;
type
:
Keys
}
]
,
)
=>
V
|
Promise
<
V
>
,
)
:
boolean
Type Parameters
U
extends
any
[]
=
[
]
V
=
any
Parameters
type
:
string
handler
:
(
...
args
:
[
...
U
[]
,
{
once
:
boolean
;
type
:
Keys
}
]
)
=>
V
|
Promise
<
V
>
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
emit
off
on
once
amitt - v1.0.20
Loading...