FixIt JavaScript API
FixIt Documentation
GitHub
Preparing search index...
core/event-bus
TypedEventBus
Class TypedEventBus
Typed event bus — wraps DOM CustomEvents with type-safe emit/on/off.
Index
Constructors
constructor
Methods
emit
off
on
Constructors
constructor
new
TypedEventBus
()
:
TypedEventBus
Returns
TypedEventBus
Methods
emit
emit
<
K
extends
keyof
FixItEventMap
>
(
event
:
K
,
...
args
:
FixItEventMap
[
K
]
extends
void
?
[
]
:
[
FixItEventMap
[
K
]
]
,
)
:
void
Type Parameters
K
extends
keyof
FixItEventMap
Parameters
event
:
K
...
args
:
FixItEventMap
[
K
]
extends
void
?
[
]
:
[
FixItEventMap
[
K
]
]
Returns
void
off
off
<
K
extends
keyof
FixItEventMap
>
(
event
:
K
,
handler
:
Handler
<
FixItEventMap
[
K
]
>
,
)
:
void
Type Parameters
K
extends
keyof
FixItEventMap
Parameters
event
:
K
handler
:
Handler
<
FixItEventMap
[
K
]
>
Returns
void
on
on
<
K
extends
keyof
FixItEventMap
>
(
event
:
K
,
handler
:
Handler
<
FixItEventMap
[
K
]
>
,
)
:
void
Type Parameters
K
extends
keyof
FixItEventMap
Parameters
event
:
K
handler
:
Handler
<
FixItEventMap
[
K
]
>
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
emit
off
on
FixIt Documentation
GitHub
FixIt JavaScript API
Loading...
Typed event bus — wraps DOM CustomEvents with type-safe emit/on/off.