File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1
- export interface IAddListener {
2
- ( key : string , callback : Function ) : void
3
- }
1
+ export type IAddListener = ( key : string , callback : Function ) => void
4
2
5
- export interface IRemoveListener {
6
- ( key : string , callback : Function ) : void
7
- }
3
+ export type IRemoveListener = ( key : string , callback : Function ) => void
8
4
9
- export interface IDispatch {
10
- ( key : string , context : any , value : any ) : void
11
- }
5
+ export type IDispatch = ( key : string , context : any , value : any ) => void
12
6
13
7
export interface IEventBus {
14
8
addEventListener : IAddListener
15
9
removeEventListener : IRemoveListener
16
10
dispatch : IDispatch
17
11
}
18
12
19
- const EventBus : IEventBus = require ( 'eventbusjs' )
13
+ import * as EventBusAny from 'eventbusjs'
14
+ const EventBus : IEventBus = EventBusAny
20
15
export { EventBus }
Original file line number Diff line number Diff line change
1
+ declare module 'eventbusjs'
You can’t perform that action at this time.
0 commit comments