Skip to content

Commit e6f3bd5

Browse files
committed
more typescript definition file updates
1 parent e3f11d5 commit e6f3bd5

1 file changed

Lines changed: 32 additions & 26 deletions

File tree

build/phaser.d.ts

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,28 +1299,28 @@ declare module Phaser {
12991299
checkBitmapDataKey(key: string): boolean;
13001300
checkBitmapFontKey(key: string): boolean;
13011301
checkJSONKey(key: string): boolean;
1302-
decodedSound(key: string, data: Object): void;
1302+
decodedSound(key: string, data: any): void;
13031303
destroy(): void;
1304-
getBinary(key: string): Object;
1304+
getBinary(key: string): any;
13051305
getBitmapData(key: string): Phaser.BitmapData;
13061306
getBitmapFont(key: string): Phaser.RetroFont;
1307-
getCanvas(key: string): Object;
1307+
getCanvas(key: string): any;
13081308
getFrame(key: string): Phaser.Frame;
13091309
getFrameByIndex(key: string, frame: string): Phaser.Frame;
13101310
getFrameByName(key: string, frame: string): Phaser.Frame;
13111311
getFrameData(key: string): Phaser.FrameData;
1312-
getImage(key: string): Object;
1313-
getJSON(key: string): Object;
1312+
getImage(key: string): any;
1313+
getJSON(key: string): any;
13141314
getKeys(array: string[]): string[];
13151315
getPhysicsData(key: string, object?: string, fixtureKey?: string): Object[];
13161316
getSound(key: string): Phaser.Sound;
1317-
getSoundData(key: string): Object;
1317+
getSoundData(key: string): any;
13181318
getText(key: string): string;
13191319
getTextKeys(): string[];
13201320
getTexture(key: string): Phaser.RenderTexture;
13211321
getTextureFrame(key: string): Phaser.Frame;
1322-
getTilemapData(key: string): Object;
1323-
getTilemap(key: string): Object;
1322+
getTilemapData(key: string): any;
1323+
getTilemap(key: string): any;
13241324
isSoundDecoded(key: string): boolean;
13251325
isSoundReady(key: string): boolean;
13261326
isSpriteSheet(key: string): boolean;
@@ -3894,43 +3894,49 @@ declare module Phaser {
38943894
y: number;
38953895

38963896
static add(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
3897-
static centroid(points: Phaser.Point[], out?: Phaser.Point): Phaser.Point;
3898-
static distance(a: Phaser.Point, b: Phaser.Point, round?: boolean): number;
3897+
static subtract(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
3898+
static multiply(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
38993899
static divide(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
39003900
static equals(a: Phaser.Point, b: Phaser.Point): boolean;
3901-
static multiply(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
3902-
static rotate(a: Phaser.Point, x: number, y: number, angle: number, asDegrees: boolean, distance?: number): Phaser.Point;
3903-
static subtract(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
3901+
static angle(a: Phaser.Point, b: Phaser.Point): number;
3902+
static angleSq(a: Phaser.Point, b: Phaser.Point): number;
3903+
static negative(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
3904+
static multiplyAdd(a: Phaser.Point, b: Phaser.Point, scale: number, out?: Phaser.Point): Phaser.Point;
3905+
static interpolate(a: Phaser.Point, b: Phaser.Point, alpha: number, out?: Phaser.Point): Phaser.Point;
3906+
static perp(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
3907+
static rperp(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
3908+
static distance(a: any, b: any, round?: boolean): number;
3909+
static project(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
3910+
static projectUnit(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
3911+
static normalRightHand(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
3912+
static normalize(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
3913+
static rotate(a: Phaser.Point, x: number, y: number, angle: number, asDegrees?: boolean, distance?: number): Phaser.Point;
3914+
static centroid(points: Phaser.Point[], out?: Phaser.Point): Phaser.Point;
39043915

39053916
add(x: number, y: number): Phaser.Point;
39063917
angle(a: Phaser.Point, asDegrees?: boolean): number;
3907-
angleSq(a: Phaser.Point, b: Phaser.Point): number;
3918+
angleSq(a: Phaser.Point): number;
39083919
clamp(min: number, max: number): Phaser.Point;
39093920
clampX(min: number, max: number): Phaser.Point;
39103921
clampY(min: number, max: number): Phaser.Point;
39113922
clone(output?: Phaser.Point): Phaser.Point;
3912-
copyFrom(source: any): Phaser.Point;
3913-
copyTo(dest: any): Object;
3923+
copyFrom(source: Phaser.Point): Phaser.Point;
3924+
copyTo(dest: Phaser.Point): Object;
39143925
cross(a: Phaser.Point): number;
3915-
distance(dest: Object, round?: boolean): number;
39163926
divide(x: number, y: number): Phaser.Point;
3927+
distance(dest: Phaser.Point, round?: boolean): number;
39173928
dot(a: Phaser.Point): number;
39183929
equals(a: Phaser.Point): boolean;
39193930
getMagnitude(): number;
39203931
getMagnitudeSq(): number;
3921-
interpolate(a: Phaser.Point, b: Phaser.Point, f: number, out?: Phaser.Point): Phaser.Point;
39223932
invert(): Phaser.Point;
39233933
isZero(): boolean;
39243934
multiply(x: number, y: number): Phaser.Point;
3925-
multiplyAdd(a: Phaser.Point, b: Phaser.Point, s: number, out?: Phaser.Point): Phaser.Point;
3926-
negative(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
3927-
normalize(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
3928-
normalRightHand(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
3929-
perp(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
3930-
project(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
3931-
projectUnit(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
3935+
normalize(): Phaser.Point;
3936+
normalRightHand(): Phaser.Point;
3937+
perp(): Phaser.Point;
3938+
rperp(): Phaser.Point;
39323939
rotate(x: number, y: number, angle: number, asDegrees?: boolean, distance?: number): Phaser.Point;
3933-
rperp(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
39343940
set(x: number, y?: number): Phaser.Point;
39353941
setMagnitude(magnitude: number): Phaser.Point;
39363942
setTo(x: number, y?: number): Phaser.Point;

0 commit comments

Comments
 (0)