Merge pull request #5871 from samme/docs/ObjectHelper

Docs: fix types in Phaser.Tilemaps.ObjectHelper#setFromJSON
This commit is contained in:
Richard Davey 2021-10-25 18:01:18 +01:00 committed by GitHub
commit f6147757d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -197,7 +197,7 @@ var ObjectHelper = new Class({
* @private
*
* @param {Phaser.GameObjects.GameObject} sprite - The object for which to populate `data`.
* @param {({[key:string]:*}|{name:string, value:*}[])} properties - The properties to set in either JSON object format or else a list of objects with `name` and `value` fields.
* @param {(Object.<string, *>|Object[])} properties - The properties to set in either JSON object format or else a list of objects with `name` and `value` fields.
*/
setFromJSON: function (sprite, properties)
{