type output of map.toJSON

This commit is contained in:
Mel Bourgeois 2024-02-24 21:37:09 -06:00
parent 8c1d7c72b8
commit 5d0da802b8
No known key found for this signature in database
GPG Key ID: 290FCF081AEDB3EC

View File

@ -139,11 +139,11 @@ export class YMap extends AbstractType {
/**
* Transforms this Shared Type to a JSON object.
*
* @return {Object<string,any>}
* @return {Partial<MapType>}
*/
toJSON () {
/**
* @type {Object<string,MapType>}
* @type {any}
*/
const map = {}
this._map.forEach((item, key) => {