Skip to content

Commit 207cea6

Browse files
committed
fix(typescript): fix Matrix.fromArray definition
Added explicity `void` return type for Matrix.fromArray. Reason: it has similar function type in pixi.d.ts, and it caused troubles when using typescript compiler with `--noImplicitAny` flag.
1 parent 6159251 commit 207cea6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

typescript/phaser.comments.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10540,7 +10540,7 @@ declare module Phaser {
1054010540

1054110541
apply(pos: Phaser.Point, newPos?: Phaser.Point): Phaser.Point;
1054210542
applyInverse(pos: Phaser.Point, newPos?: Phaser.Point): Phaser.Point;
10543-
fromArray(array: number[]);
10543+
fromArray(array: number[]): void;
1054410544
toArray(transpose: boolean): number[];
1054510545
translate(x: number, y: number): Phaser.Matrix;
1054610546
scale(x: number, y: number): Phaser.Matrix;

typescript/phaser.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,7 @@ declare module Phaser {
20562056

20572057
apply(pos: Phaser.Point, newPos?: Phaser.Point): Phaser.Point;
20582058
applyInverse(pos: Phaser.Point, newPos?: Phaser.Point): Phaser.Point;
2059-
fromArray(array: number[]);
2059+
fromArray(array: number[]): void;
20602060
toArray(transpose: boolean): number[];
20612061
translate(x: number, y: number): Phaser.Matrix;
20622062
scale(x: number, y: number): Phaser.Matrix;

0 commit comments

Comments
 (0)