diff --git a/src/types/YText.js b/src/types/YText.js index aa0f8fb1..13e86729 100644 --- a/src/types/YText.js +++ b/src/types/YText.js @@ -341,13 +341,11 @@ class YTextEvent extends YEvent { */ this._delta = null } - // TODO: Should put this in a separate function. toDelta shouldn't be included - // in every Yjs distribution /** * Compute the changes in the delta format. + * A {@link https://quilljs.com/docs/delta/|Quill Delta}) that represents the changes on the document. * - * @type {Array<{delete:number|undefined,retain:number|undefined,insert:string|undefined,attributes:Object}>} A {@link https://quilljs.com/docs/delta/|Quill Delta}) that - * represents the changes on the document. + * @type {Array<{delete:number|undefined,retain:number|undefined,insert:string|undefined,attributes:Object}>} * * @public */ diff --git a/src/types/YXmlElement.js b/src/types/YXmlElement.js index b1b608e7..32027380 100644 --- a/src/types/YXmlElement.js +++ b/src/types/YXmlElement.js @@ -423,7 +423,6 @@ export class YXmlElement extends YXmlFragment { } } - // TODO: outsource the binding property. /** * Creates a Dom Element that mirrors this YXmlElement. * diff --git a/src/utils/ID.js b/src/utils/ID.js index 2cefe8a6..e2229d23 100644 --- a/src/utils/ID.js +++ b/src/utils/ID.js @@ -15,11 +15,13 @@ export class ID { */ constructor (client, clock) { /** - * @type {number} Client id + * Client id + * @type {number} */ this.client = client /** - * @type {number} unique per client id, continuous number + * unique per client id, continuous number + * @type {number} */ this.clock = clock } diff --git a/src/utils/Transaction.js b/src/utils/Transaction.js index 97c52539..7c867ce8 100644 --- a/src/utils/Transaction.js +++ b/src/utils/Transaction.js @@ -50,7 +50,8 @@ export class Transaction { */ constructor (y) { /** - * @type {Y} The Yjs instance. + * The Yjs instance. + * @type {Y} */ this.y = y /**