From 5cbef5988b5ff7d96d9a6a8484a5977cc6c8e670 Mon Sep 17 00:00:00 2001 From: studiollama Date: Wed, 12 Jun 2013 10:41:14 -0600 Subject: [PATCH] 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 --- easeljs/easeljs.d.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/easeljs/easeljs.d.ts b/easeljs/easeljs.d.ts index 7125d8943..e643382c3 100644 --- a/easeljs/easeljs.d.ts +++ b/easeljs/easeljs.d.ts @@ -11,14 +11,14 @@ */ -/// +/// // 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; } -} +}