Skip to content

Commit 0d4bce2

Browse files
committed
Fix some errors in the definitions files for Phaser.Group
1 parent 76e1c57 commit 0d4bce2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

typescript/phaser.comments.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7142,7 +7142,7 @@ declare module Phaser {
71427142
* @param child The child to bring to the top of this group.
71437143
* @return The child that was moved.
71447144
*/
7145-
bringToTop(): PIXI.DisplayObject;
7145+
bringToTop(child: any): any;
71467146

71477147
/**
71487148
* Calls a function, specified by name, on all on children.
@@ -7454,7 +7454,7 @@ declare module Phaser {
74547454
* @param child The child to move down in the group.
74557455
* @return The child that was moved.
74567456
*/
7457-
moveDown(): PIXI.DisplayObject;
7457+
moveDown(child: any): any;
74587458

74597459
/**
74607460
* Moves the given child up one place in this group unless it's already at the top.

typescript/phaser.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ declare module Phaser {
14511451
addAll(property: string, amount: number, checkAlive: boolean, checkVisible: boolean): void;
14521452
addAt(child: any, index: number, silent?: boolean): any;
14531453
addMultiple(children: any[], silent?: boolean): any[];
1454-
bringToTop(): PIXI.DisplayObject;
1454+
bringToTop(child: any): any;
14551455
callAll(method: string, context: any, ...parameters: any[]): void;
14561456
callAllExists(callback: Function, existsValue: boolean, ...parameters: any[]): void;
14571457
callbackFromArray(child: any, callback: Function, length: number): void;
@@ -1479,7 +1479,7 @@ declare module Phaser {
14791479
getTop(): any;
14801480
hasProperty(child: any, key: string[]): boolean;
14811481
iterate(key: string, value: any, returnType: number, callback?: Function, callbackContext?: any, ...args: any[]): any;
1482-
moveDown(): PIXI.DisplayObject;
1482+
moveDown(child: any): any;
14831483
moveUp(child: any): any;
14841484
multiplyAll(property: string, amount: number, checkAlive: boolean, checkVisible: boolean): void;
14851485
next(): void;

0 commit comments

Comments
 (0)