Skip to content

Commit 874929d

Browse files
authored
Merge pull request phaserjs#4250 from jcyuan/Branch_v3.15.1
doc improvement & minor bug fix
2 parents af86a3b + 580cc36 commit 874929d

4 files changed

Lines changed: 8 additions & 12 deletions

File tree

src/gameobjects/container/Container.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,8 @@ var Container = new Class({
601601
* @method Phaser.GameObjects.Container#getFirst
602602
* @since 3.4.0
603603
*
604-
* @param {string} [property] - The property to test on each Game Object in the Container.
605-
* @param {*} [value] - The value to test the property against. Must pass a strict (`===`) comparison check.
604+
* @param {string} property - The property to test on each Game Object in the Container.
605+
* @param {*} value - The value to test the property against. Must pass a strict (`===`) comparison check.
606606
* @param {integer} [startIndex=0] - An optional start index to search from.
607607
* @param {integer} [endIndex=Container.length] - An optional end index to search up to (but not included)
608608
*

src/structs/List.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ var NOOP = require('../utils/NOOP');
1010
var StableSort = require('../utils/array/StableSort');
1111

1212
/**
13-
* @callback EachListCallback
14-
* @generic I - [item]
13+
* @callback EachListCallback<I>
1514
*
16-
* @param {*} item - The item which is currently being processed.
15+
* @param {I} item - The item which is currently being processed.
1716
* @param {...*} [args] - Additional arguments that will be passed to the callback, after the child.
1817
*/
1918

@@ -271,7 +270,6 @@ var List = new Class({
271270
* @method Phaser.Structs.List#getFirst
272271
* @since 3.0.0
273272
*
274-
* @genericUse {T} - [value]
275273
* @genericUse {T | null} - [$return]
276274
*
277275
* @param {string} property - The name of the property to test or a falsey value to have no criterion.

src/structs/Map.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
var Class = require('../utils/Class');
88

99
/**
10-
* @callback EachMapCallback
11-
* @generic E - [entry]
10+
* @callback EachMapCallback<E>
1211
*
1312
* @param {string} key - The key of the Map entry.
14-
* @param {*} entry - The value of the Map entry.
13+
* @param {E} entry - The value of the Map entry.
1514
*
1615
* @return {?boolean} The callback result.
1716
*/

src/structs/Set.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
var Class = require('../utils/Class');
88

99
/**
10-
* @callback EachSetCallback
11-
* @generic E - [entry]
10+
* @callback EachSetCallback<E>
1211
*
13-
* @param {*} entry - The Set entry.
12+
* @param {E} entry - The Set entry.
1413
* @param {number} index - The index of the entry within the Set.
1514
*
1615
* @return {?boolean} The callback result.

0 commit comments

Comments
 (0)