reeller
Version:
Flexible, powerful and modern library for creating the running horizontal blocks effect, also known as ticker or the «marquee effect».
25 lines • 704 B
TypeScript
export default class Base {
events: {};
/**
* Attach an event handler function.
*
* @param {string} event Event name.
* @param {function} callback Callback.
*/
on(event: string, callback: Function): void;
/**
* Remove an event handler.
*
* @param {string} event Event name.
* @param {function} [callback] Callback.
*/
off(event: string, callback?: Function): void;
/**
* Execute all handlers for the given event type.
*
* @param {string} event Event name.
* @param params Extra parameters.
*/
trigger(event: string, ...params: any[]): void;
}
//# sourceMappingURL=Base.d.ts.map