UNPKG
@bsw/bsweventemitter
Version:
latest (1.1.6)
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.0
1.0.1
1.0.0
Publish Subscribe events for the page
@bsw/bsweventemitter
/
lib
/
BSWEventEmitter.d.ts
11 lines
(10 loc)
•
303 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
export
interface
IEventData
{
data
:
any
; }
export
declare
class
BSWEventEmitter
{
static
getInstance
():
BSWEventEmitter
;
subjects
:
object
;
private
constructor
(
);
emit
(
name
:
string
,
data
:
IEventData
):
void
;
on
(
name
:
string
,
handler
:
(
data
:
IEventData
) =>
void
):
void
; }