Correctly type style in TextFactory

This commit is contained in:
Patrick Sletvold 2020-08-01 13:34:37 +02:00
parent a525e43dcf
commit 87e8eba213
No known key found for this signature in database
GPG key ID: 804D4E1435C33225

View file

@ -41,7 +41,7 @@ var GameObjectFactory = require('../../GameObjectFactory');
* @param {number} x - The horizontal position of this Game Object in the world.
* @param {number} y - The vertical position of this Game Object in the world.
* @param {(string|string[])} text - The text this Text object will display.
* @param {object} [style] - The Text style configuration object.
* @param {Phaser.Types.GameObjects.Text.TextStyle} [style] - The Text style configuration object.
*
* @return {Phaser.GameObjects.Text} The Game Object that was created.
*/