Skip to content

Commit f653a51

Browse files
committed
Docs: generic return for add.existing()
1 parent 000beb2 commit f653a51

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/gameobjects/GameObjectFactory.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ var GameObjectFactory = new Class({
112112
* @method Phaser.GameObjects.GameObjectFactory#existing
113113
* @since 3.0.0
114114
*
115+
* @generic {Phaser.GameObjects.GameObject} G - [child,$return]
116+
*
115117
* @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.Group)} child - The child to be added to this Scene.
116118
*
117119
* @return {Phaser.GameObjects.GameObject} The Game Object that was added.

src/physics/arcade/Factory.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ var Factory = new Class({
101101
* @method Phaser.Physics.Arcade.Factory#existing
102102
* @since 3.0.0
103103
*
104+
* @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]
105+
*
104106
* @param {Phaser.GameObjects.GameObject} gameObject - A Game Object.
105107
* @param {boolean} [isStatic=false] - Create a Static body (true) or Dynamic body (false).
106108
*

0 commit comments

Comments
 (0)