@robotlegsjs/createjs
Version:
CreateJS View Integration with RobotlegsJS
16 lines (15 loc) • 835 B
TypeScript
/// <reference types="createjs-lib" />
import { IEvent, IEventDispatcher } from "@robotlegsjs/core";
/**
* Makes the bridge between the createjs.EventDispatcher and IEventDispatcher.
*/
export declare class ConvertToEventDispatcher implements IEventDispatcher {
private _createjsEventDispatcher;
constructor(createjsEventDispatcher: createjs.EventDispatcher);
addEventListener(type: string, listener: Function, thisObject?: any, useCapture?: boolean, priority?: number): void;
once(type: string, listener: Function, thisObject?: any, useCapture?: boolean, priority?: number): void;
removeEventListener(type: string, listener: Function, thisObject?: any, useCapture?: boolean): void;
hasEventListener(type: string): boolean;
dispatchEvent(event: IEvent): boolean;
willTrigger(type: string): boolean;
}