Skip to content

Commit e879ec7

Browse files
committed
Correct types for GroupCreateConfig.key, GroupCreateConfig.frame
1 parent b649ec3 commit e879ec7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/gameobjects/group/typedefs/GroupCreateConfig.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
* If `max` is positive, then the total created will not exceed `max`.
99
*
1010
* `key` is required. {@link Phaser.GameObjects.Group#defaultKey} is not used.
11-
*
11+
*
1212
* @typedef {object} Phaser.Types.GameObjects.Group.GroupCreateConfig
1313
* @since 3.0.0
1414
*
1515
* @property {?Phaser.Types.GameObjects.Group.GroupClassTypeConstructor} [classType] - The class of each new Game Object.
16-
* @property {string} [key] - The texture key of each new Game Object.
17-
* @property {?(string|integer)} [frame=null] - The texture frame of each new Game Object.
16+
* @property {(string|string[])} [key] - The texture key of each new Game Object.
17+
* @property {?(string|string[]|integer|integer[])} [frame=null] - The texture frame of each new Game Object.
1818
* @property {?boolean} [visible=true] - The visible state of each new Game Object.
1919
* @property {?boolean} [active=true] - The active state of each new Game Object.
2020
* @property {?number} [repeat=0] - The number of times each `key` × `frame` combination will be *repeated* (after the first combination).

0 commit comments

Comments
 (0)