mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-28 17:35:49 +08:00
Updates to match the latest version of CreateJS (EaseJS v0.6, PreloadJS v0.3, SoundJS v0.4, and TweenJS v0.4).
Also fixed the easeljs-tests.ts so it compiles correctly.
This commit is contained in:
33
tweenjs/tweenjs.d.ts
vendored
33
tweenjs/tweenjs.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for TweenJS 0.3
|
||||
// Type definitions for TweenJS 0.4
|
||||
// Project: http://www.createjs.com/#!/TweenJS
|
||||
// Definitions by: Pedro Ferreira <https://bitbucket.org/drk4>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
@@ -12,6 +12,13 @@
|
||||
|
||||
module createjs {
|
||||
|
||||
export class TweenJS {
|
||||
// properties
|
||||
version: string;
|
||||
buildDate: string;
|
||||
}
|
||||
|
||||
|
||||
export class CSSPlugin {
|
||||
// properties
|
||||
static cssSuffixMap: Object;
|
||||
@@ -128,6 +135,26 @@ module createjs {
|
||||
wait(duration: number): void;
|
||||
|
||||
// events
|
||||
onChange: (instance: Tween) => any;
|
||||
change: (event) => any;
|
||||
|
||||
// EventDispatcher mixins
|
||||
addEventListener(type: string, listener: (eventObj: Object) => bool): Function;
|
||||
addEventListener(type: string, listener: (eventObj: Object) => bool): Object;
|
||||
removeEventListener(type: string, listener: (eventObj: Function) => bool): void;
|
||||
removeEventListener(type: string, listener: (eventObj: Object) => bool): void;
|
||||
removeAllEventListeners(type: string): void;
|
||||
dispatchEvent(eventObj: string, target: Object): bool;
|
||||
dispatchEvent(eventObj: Object, target: Object): bool;
|
||||
hasEventListener(type: string): bool;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export class MotionGuidePlugin {
|
||||
// properties
|
||||
static priority: number;
|
||||
|
||||
//methods
|
||||
static install(): Object;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user