Skip to content

Commit 022fa20

Browse files
committed
Fixed this return types for Phaser.GameObjects.Particles.EmitterOp
1 parent 270f7b3 commit 022fa20

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/gameobjects/particles/EmitterOp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ var EmitterOp = new Class({
209209
*
210210
* @param {number} value - The value of the property.
211211
*
212-
* @return {Phaser.GameObjects.Particles.EmitterOp} This Emitter Op object.
212+
* @return {this} This Emitter Op object.
213213
*/
214214
onChange: function (value)
215215
{
@@ -226,7 +226,7 @@ var EmitterOp = new Class({
226226
* @method Phaser.GameObjects.Particles.EmitterOp#setMethods
227227
* @since 3.0.0
228228
*
229-
* @return {Phaser.GameObjects.Particles.EmitterOp} This Emitter Op object.
229+
* @return {this} This Emitter Op object.
230230
*/
231231
setMethods: function ()
232232
{

types/phaser.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19367,14 +19367,14 @@ declare namespace Phaser {
1936719367
* Change the current value of the property and update its callback methods.
1936819368
* @param value The value of the property.
1936919369
*/
19370-
onChange(value: number): Phaser.GameObjects.Particles.EmitterOp;
19370+
onChange(value: number): this;
1937119371

1937219372
/**
1937319373
* Update the {@link Phaser.GameObjects.Particles.EmitterOp#onEmit} and
1937419374
* {@link Phaser.GameObjects.Particles.EmitterOp#onUpdate} callbacks based on the type of the current
1937519375
* {@link Phaser.GameObjects.Particles.EmitterOp#propertyValue}.
1937619376
*/
19377-
setMethods(): Phaser.GameObjects.Particles.EmitterOp;
19377+
setMethods(): this;
1937819378

1937919379
/**
1938019380
* Check whether an object has the given property.

0 commit comments

Comments
 (0)