From 1f9df6e3f4875162400f594275f74398ba35759c Mon Sep 17 00:00:00 2001 From: gareththegeek Date: Thu, 16 Jan 2014 14:43:28 +0000 Subject: [PATCH] Fix typescript compile error in 0.9.5 Explicitly specify type for parameters array --- build/phaser.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build/phaser.d.ts b/build/phaser.d.ts index 316423f6..adef4fe1 100644 --- a/build/phaser.d.ts +++ b/build/phaser.d.ts @@ -1353,11 +1353,11 @@ declare module Phaser { static SECOND: number; static HALF: number; static QUARTER: number; - create(delay: number, loop: boolean, repeatCount: number, callback: any, callbackContext: any, ...): Phaser.TimerEvent; - add(delay: number, callback: any, callbackContext: any, ...): Phaser.TimerEvent; - repeat(delay: number, repeatCount: number, callback: any, callbackContext: any, ...): Phaser.TimerEvent; - create(delay: number, loop: boolean, repeatCount: number, callback: any, callbackContext: any, ...): Phaser.TimerEvent; - loop(delay: number, callback: any, callbackContext: any, ...): Phaser.TimerEvent; + create(delay: number, loop: boolean, repeatCount: number, callback: any, callbackContext: any, ...args: any[]): Phaser.TimerEvent; + add(delay: number, callback: any, callbackContext: any, ...args: any[]): Phaser.TimerEvent; + repeat(delay: number, repeatCount: number, callback: any, callbackContext: any, ...args: any[]): Phaser.TimerEvent; + create(delay: number, loop: boolean, repeatCount: number, callback: any, callbackContext: any, ...args: any[]): Phaser.TimerEvent; + loop(delay: number, callback: any, callbackContext: any, ...args: any[]): Phaser.TimerEvent; start(): void; stop(): void; remove(event: Phaser.TimerEvent): boolean; @@ -1967,4 +1967,4 @@ declare module Phaser { game: Phaser.Game; render(tilemap: Tilemap): void; } -} \ No newline at end of file +}