Skip to content

Commit 192e03c

Browse files
committed
Fixed this return types for Phaser.GameObjects.Sprite
1 parent 4578a9e commit 192e03c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/gameobjects/sprite/Sprite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ var Sprite = new Class({
127127
* @param {boolean} [ignoreIfPlaying=false] - If an animation is already playing then ignore this call.
128128
* @param {integer} [startFrame=0] - Optionally start the animation playing from this frame index.
129129
*
130-
* @return {Phaser.GameObjects.Sprite} This Game Object.
130+
* @return {this} This Game Object.
131131
*/
132132
play: function (key, ignoreIfPlaying, startFrame)
133133
{

types/phaser.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33594,7 +33594,7 @@ declare namespace Phaser {
3359433594
* @param ignoreIfPlaying If an animation is already playing then ignore this call. Default false.
3359533595
* @param startFrame Optionally start the animation playing from this frame index. Default 0.
3359633596
*/
33597-
play(key: string, ignoreIfPlaying?: boolean, startFrame?: integer): Phaser.GameObjects.Sprite;
33597+
play(key: string, ignoreIfPlaying?: boolean, startFrame?: integer): this;
3359833598

3359933599
/**
3360033600
* Build a JSON representation of this Sprite.

0 commit comments

Comments
 (0)