mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-17 11:50:22 +08:00
- add new utilities functions (extend / promote)
- add missing properties to some classes for easel 0.8
This commit is contained in:
Vendored
+3
@@ -56,6 +56,7 @@ declare module createjs {
|
||||
clone(): Event;
|
||||
preventDefault(): void;
|
||||
remove(): void;
|
||||
set(props: Object): Event;
|
||||
stopImmediatePropagation(): void;
|
||||
stopPropagation(): void;
|
||||
toString(): string;
|
||||
@@ -93,7 +94,9 @@ declare module createjs {
|
||||
willTrigger(type: string): boolean;
|
||||
}
|
||||
|
||||
export function extend(subclass: () => any, superclass: () => any): () => any; // returns the subclass prototype
|
||||
export function indexOf(array: any[], searchElement: Object): number;
|
||||
export function promote(subclass: () => any, prefix: string): () => any;
|
||||
|
||||
export function proxy(method: (eventObj: Object) => boolean, scope: Object, ...arg: any[]): (eventObj: Object) => any;
|
||||
export function proxy(method: (eventObj: Object) => void, scope: Object, ...arg: any[]): (eventObj: Object) => any;
|
||||
|
||||
Reference in New Issue
Block a user