From d7deb2ac0efdc5591bf825539b186f74a08529a0 Mon Sep 17 00:00:00 2001 From: Clark Stevenson Date: Sat, 1 Aug 2015 12:06:25 +0100 Subject: [PATCH 1/2] Updated TypeScript Readme --- typescript/readme.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/typescript/readme.md b/typescript/readme.md index 62b9a12f5..a9b08e370 100644 --- a/typescript/readme.md +++ b/typescript/readme.md @@ -9,4 +9,8 @@ Please use TypeScript 1.4+ ## Contributing ## -If you find any mistakes in these definitions or you feel they can be improved in any way, please make a pull request against the dev branch. \ No newline at end of file +If you find any mistakes in these definitions or you feel they can be improved in any way, please make a pull request against the dev branch. + +## Note ## + +`Creature` and `Box2D` are not yet defined. \ No newline at end of file From d63d9c479290af11f7b3a5afa6f59e9c9313855c Mon Sep 17 00:00:00 2001 From: Clark Stevenson Date: Sat, 1 Aug 2015 12:08:21 +0100 Subject: [PATCH 2/2] Added a couple of missing types --- typescript/phaser.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/typescript/phaser.d.ts b/typescript/phaser.d.ts index ccecc46c2..2d71a7bb1 100644 --- a/typescript/phaser.d.ts +++ b/typescript/phaser.d.ts @@ -1,7 +1,7 @@ /// /// -// Type definitions for Phaser 2.4.0 2015-Jul-16 +// Type definitions for Phaser 2.4.3 2015-Jul-31 // Project: https://github.com/photonstorm/phaser declare class Phaser { @@ -3142,7 +3142,7 @@ declare module Phaser { applyDamping(dt: number): void; applyForce(force: number[], worldX: number, worldY: number): void; applyImpulse(impulse: number[], worldX: number, worldY: number): void; - applyImpulseLocal(force: number[], localX: number, localY: number): void; + applyImpulseLocal(impulse: number[], localX: number, localY: number): void; clearCollision(clearGroup?: boolean, cleanMask?: boolean, shape?: p2.Shape): void; clearShapes(): void; collides(group: any, callback?: Function, callbackContext?: any, shape?: p2.Shape): void; @@ -3868,7 +3868,7 @@ declare module Phaser { start(): boolean; stop(): void; updateRAF(rafTime: number): void; - updateSetTimeout(): void; + updateSetTimeout(time: number): void; } @@ -5114,7 +5114,7 @@ declare module Phaser { repeat(): number; start(): Phaser.TweenData; to(properties: any, duration?: number, ease?: Function, delay?: number, repeat?: number, yoyo?: boolean): Phaser.TweenData; - update(): number; + update(time: number): number; }