Skip to content

Commit d860725

Browse files
committed
first / last / next / prev should specify the return type as T
1 parent 524d015 commit d860725

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/structs/List.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,8 @@ var List = new Class({
710710
* The first item in the List or `null` for an empty List.
711711
*
712712
* @name Phaser.Structs.List#first
713-
* @type {integer}
713+
* @genericUse {T} - [$type]
714+
* @type {*} The first item in the List or `null` for an empty List.
714715
* @readonly
715716
* @since 3.0.0
716717
*/
@@ -736,7 +737,8 @@ var List = new Class({
736737
* The last item in the List, or `null` for an empty List.
737738
*
738739
* @name Phaser.Structs.List#last
739-
* @type {integer}
740+
* @genericUse {T} - [$type]
741+
* @type {*} The last item in the List, or `null` for an empty List.
740742
* @readonly
741743
* @since 3.0.0
742744
*/
@@ -764,7 +766,8 @@ var List = new Class({
764766
* This property can be read successively after reading {@link #first} or manually setting the {@link #position} to iterate the List.
765767
*
766768
* @name Phaser.Structs.List#next
767-
* @type {integer}
769+
* @genericUse {T} - [$type]
770+
* @type {*} The next item in the List, or `null` if the entire List has been traversed.
768771
* @readonly
769772
* @since 3.0.0
770773
*/
@@ -792,7 +795,8 @@ var List = new Class({
792795
* This property can be read successively after reading {@link #last} or manually setting the {@link #position} to iterate the List backwards.
793796
*
794797
* @name Phaser.Structs.List#previous
795-
* @type {integer}
798+
* @genericUse {T} - [$type]
799+
* @type {*} The previous item in the List, or `null` if the entire List has been traversed.
796800
* @readonly
797801
* @since 3.0.0
798802
*/

0 commit comments

Comments
 (0)