@@ -36,7 +36,7 @@ var GetValue = require('../utils/object/GetValue');
3636 */
3737
3838/**
39- * @typedef {object } AnimationConfig // TODO 19/03/2018 fix type
39+ * @typedef {object } AnimationConfig
4040 *
4141 * @property {AnimationFrameConfig[] } [frames] - [description]
4242 * @property {string } [defaultTextureKey=null] - [description]
@@ -49,15 +49,15 @@ var GetValue = require('../utils/object/GetValue');
4949 * @property {boolean } [yoyo=false] - Should the animation yoyo? (reverse back down to the start) before repeating?
5050 * @property {boolean } [showOnStart=false] - Should sprite.visible = true when the animation starts to play?
5151 * @property {boolean } [hideOnComplete=false] - Should sprite.visible = false when the animation finishes?
52- * @property {object } [callbackScope] - [description]
53- * @property {boolean } [onStart=false] - [description]
54- * @property {array } [onStartParams] - [description]
55- * @property {boolean } [onRepeat=false] - [description]
56- * @property {array } [onRepeatParams] - [description]
57- * @property {boolean } [onUpdate=false] - [description]
58- * @property {array } [onUpdateParams] - [description]
59- * @property {boolean } [onComplete=false] - [description]
60- * @property {array } [onCompleteParams] - [description]
52+ * @property {* } [callbackScope] - [description]
53+ * @property {(false|function) } [onStart=false] - [description]
54+ * @property {Array.<*> } [onStartParams] - [description]
55+ * @property {(false|function) } [onRepeat=false] - [description]
56+ * @property {Array.<*> } [onRepeatParams] - [description]
57+ * @property {(false|function) } [onUpdate=false] - [description]
58+ * @property {Array.<*> } [onUpdateParams] - [description]
59+ * @property {(false|function) } [onComplete=false] - [description]
60+ * @property {Array.<*> } [onCompleteParams] - [description]
6161 */
6262
6363/**
@@ -250,7 +250,7 @@ var Animation = new Class({
250250 * [description]
251251 *
252252 * @name Phaser.Animations.Animation#callbackScope
253- * @type {object }
253+ * @type {* }
254254 * @since 3.0.0
255255 */
256256 this . callbackScope = GetValue ( config , 'callbackScope' , this ) ;
@@ -259,7 +259,7 @@ var Animation = new Class({
259259 * [description]
260260 *
261261 * @name Phaser.Animations.Animation#onStart
262- * @type {function }
262+ * @type {(false| function) }
263263 * @since 3.0.0
264264 */
265265 this . onStart = GetValue ( config , 'onStart' , false ) ;
@@ -268,7 +268,7 @@ var Animation = new Class({
268268 * [description]
269269 *
270270 * @name Phaser.Animations.Animation#onStartParams
271- * @type {array }
271+ * @type {Array.<*> }
272272 * @since 3.0.0
273273 */
274274 this . onStartParams = GetValue ( config , 'onStartParams' , [ ] ) ;
@@ -277,7 +277,7 @@ var Animation = new Class({
277277 * [description]
278278 *
279279 * @name Phaser.Animations.Animation#onRepeat
280- * @type {function }
280+ * @type {(false| function) }
281281 * @since 3.0.0
282282 */
283283 this . onRepeat = GetValue ( config , 'onRepeat' , false ) ;
@@ -286,7 +286,7 @@ var Animation = new Class({
286286 * [description]
287287 *
288288 * @name Phaser.Animations.Animation#onRepeatParams
289- * @type {array }
289+ * @type {Array.<*> }
290290 * @since 3.0.0
291291 */
292292 this . onRepeatParams = GetValue ( config , 'onRepeatParams' , [ ] ) ;
@@ -296,7 +296,7 @@ var Animation = new Class({
296296 * See AnimationFrame.onUpdate for a frame specific callback.
297297 *
298298 * @name Phaser.Animations.Animation#onUpdate
299- * @type {function }
299+ * @type {(false| function) }
300300 * @since 3.0.0
301301 */
302302 this . onUpdate = GetValue ( config , 'onUpdate' , false ) ;
@@ -305,7 +305,7 @@ var Animation = new Class({
305305 * [description]
306306 *
307307 * @name Phaser.Animations.Animation#onUpdateParams
308- * @type {array }
308+ * @type {Array.<*> }
309309 * @since 3.0.0
310310 */
311311 this . onUpdateParams = GetValue ( config , 'onUpdateParams' , [ ] ) ;
@@ -314,7 +314,7 @@ var Animation = new Class({
314314 * [description]
315315 *
316316 * @name Phaser.Animations.Animation#onComplete
317- * @type {function }
317+ * @type {(false| function) }
318318 * @since 3.0.0
319319 */
320320 this . onComplete = GetValue ( config , 'onComplete' , false ) ;
@@ -323,7 +323,7 @@ var Animation = new Class({
323323 * [description]
324324 *
325325 * @name Phaser.Animations.Animation#onCompleteParams
326- * @type {array }
326+ * @type {Array.<*> }
327327 * @since 3.0.0
328328 */
329329 this . onCompleteParams = GetValue ( config , 'onCompleteParams' , [ ] ) ;
0 commit comments