Skip to content

Commit 94648e4

Browse files
committed
ts fix for TweenManager
1 parent 87b54d2 commit 94648e4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/tweens/TweenManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ var TweenManager = new Class({
155155
* @method Phaser.Tweens.TweenManager#createTimeline
156156
* @since 3.0.0
157157
*
158-
* @param {Phaser.Types.Tweens.TimelineBuilderConfig} config - The configuration object for the Timeline and its Tweens.
158+
* @param {Phaser.Types.Tweens.TimelineBuilderConfig} [config] - The configuration object for the Timeline and its Tweens.
159159
*
160160
* @return {Phaser.Tweens.Timeline} The created Timeline object.
161161
*/
@@ -170,7 +170,7 @@ var TweenManager = new Class({
170170
* @method Phaser.Tweens.TweenManager#timeline
171171
* @since 3.0.0
172172
*
173-
* @param {Phaser.Types.Tweens.TimelineBuilderConfig} config - The configuration object for the Timeline and its Tweens.
173+
* @param {Phaser.Types.Tweens.TimelineBuilderConfig} [config] - The configuration object for the Timeline and its Tweens.
174174
*
175175
* @return {Phaser.Tweens.Timeline} The created Timeline object.
176176
*/

types/phaser.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84340,13 +84340,13 @@ declare namespace Phaser {
8434084340
* Create a Tween Timeline and return it, but do NOT add it to the active or pending Tween lists.
8434184341
* @param config The configuration object for the Timeline and its Tweens.
8434284342
*/
84343-
createTimeline(config: Phaser.Types.Tweens.TimelineBuilderConfig): Phaser.Tweens.Timeline;
84343+
createTimeline(config?: Phaser.Types.Tweens.TimelineBuilderConfig): Phaser.Tweens.Timeline;
8434484344

8434584345
/**
8434684346
* Create a Tween Timeline and add it to the active Tween list/
8434784347
* @param config The configuration object for the Timeline and its Tweens.
8434884348
*/
84349-
timeline(config: Phaser.Types.Tweens.TimelineBuilderConfig): Phaser.Tweens.Timeline;
84349+
timeline(config?: Phaser.Types.Tweens.TimelineBuilderConfig): Phaser.Tweens.Timeline;
8435084350

8435184351
/**
8435284352
* Create a Tween and return it, but do NOT add it to the active or pending Tween lists.

0 commit comments

Comments
 (0)