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
42
5- export interface IRemoveListener {
6- ( key : string , callback : Function ) : void
7- }
3+ export type IRemoveListener = ( key : string , callback : Function ) => void
84
9- export interface IDispatch {
10- ( key : string , context : any , value : any ) : void
11- }
5+ export type IDispatch = ( key : string , context : any , value : any ) => void
126
137export interface IEventBus {
148 addEventListener : IAddListener
159 removeEventListener : IRemoveListener
1610 dispatch : IDispatch
1711}
1812
19- const EventBus : IEventBus = require ( 'eventbusjs' )
13+ import * as EventBusAny from 'eventbusjs'
14+ const EventBus : IEventBus = EventBusAny
2015export { 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