- Issue created by @idiaz.roncero
- 🇪🇸Spain idiaz.roncero Madrid
Opened MR.
The type of
modelAttributes
should beIterable
, as stated on the types of toMap:/** * Transforms object or iterable to map. Iterable needs to be in the format acceptable by the `Map` constructor. * * ```ts * map = toMap( { 'foo': 1, 'bar': 2 } ); * map = toMap( [ [ 'foo', 1 ], [ 'bar', 2 ] ] ); * map = toMap( anotherMap ); * ``` * * @param data Object or iterable to transform. * @returns Map created from data. */ export default function toMap<T>(data: { readonly [key: string]: T; } | Iterable<readonly [string, T]> | null | undefined): Map<string, T>;
...but as I can see, JSDoc does not support Iterable as a type, so I put
object
instead (even if any iterable will suffice)@prop {object} modelAttributes * An object containing the supported attributes on the model element or * elements.