UNPKG

@withjoy/sdk-js

Version:
17 lines (16 loc) 765 B
import 'rxjs/add/operator/publishReplay'; import { Event } from './Event'; /** * * @constructor * @param event * @param dataSourceId * @param enterFunction - Optional, Allows someone else to intervene in the scheduling the fired listeners. * Everytime we want to fire a listener, we create a function f, which when called will fire the listener. * However, instead of calling f, we pass it to this enterFunction. enterFunction can then decide when to fire * the listeners. It can call f right away, or buffer them to call them periodically. * By default enterFunction is equivalent to `function (f) {f();}`. * @constructor */ declare var EventDataSource: (event: Event, dataSourceId: string, enterFunction: any) => void; export { EventDataSource };