import { Dispatcher } from 'flux' ; export class TypedEvent < P > { constructor ( public payload ) { } } export type Event = TypedEvent < any > ; const dispatcherInstance = new Dispatcher ( ) ; export { dispatcherInstance as AppDispatcher } ;