Skip to content

Commit 9fd28b9

Browse files
authored
Merge pull request #19815 from ckeditor/ck/17953
Docs: Describe the ModelNodeAttributes type.
2 parents 6719152 + f1a513d commit 9fd28b9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • packages/ckeditor5-engine/src/model

packages/ckeditor5-engine/src/model/node.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,9 @@ ModelNode.prototype.is = function( type: string ): boolean {
439439
};
440440

441441
/**
442-
* Node's attributes. See {@link module:utils/tomap~toMap} for a list of accepted values.
442+
* Represents a set of model node attributes, accepted as either a plain object
443+
* with string keys or an iterable of `[ key, value ]` pairs (e.g., a `Map`).
444+
*
445+
* See {@link module:utils/tomap~toMap} for more details and examples.
443446
*/
444447
export type ModelNodeAttributes = Record<string, unknown> | Iterable<[ string, unknown ]>;

0 commit comments

Comments
 (0)