Added gotoAndStop to BitmapAnimation in easeljs.d.ts and declare to module

Added the gotoAndStop method that is available in easeljs-0.6.1 and also included the "declare" before "module createjs" which allows it to be used with TypeScript 0.9
This commit is contained in:
studiollama
2013-06-12 10:41:14 -06:00
parent 64eef588d5
commit 5cbef5988b
+6 -4
View File
@@ -11,14 +11,14 @@
*/
/// <reference path="../tweenjs/tweenjs.d.ts" />
/// <reference path="tweenjs.d.ts" />
// rename the native MouseEvent, to avoid conflit with createjs's MouseEvent
interface NativeMouseEvent extends MouseEvent {
}
module createjs {
declare module createjs {
// :: base classes :: //
export class DisplayObject {
@@ -155,13 +155,15 @@ module createjs {
spriteSheet: SpriteSheet;
// methods
constructor (spriteSheet: SpriteSheet);
constructor(spriteSheet: SpriteSheet);
advance(): void;
cache(): void;
clone(): BitmapAnimation;
getBounds(): Rectangle;
gotoAndPlay(frameOrAnimation: string): void;
gotoAndPlay(frameOrAnimation: number): void;
gotoAndStop(frameOrAnimation: string): void;
gotoAndStop (frameOrAnimation: number): void;
play(): void;
stop(): void;
updateCache(): void;
@@ -695,4 +697,4 @@ module createjs {
// methods
static get(): number;
}
}
}