add type definition for YText.length

This commit is contained in:
Kevin Jahns
2020-02-03 12:22:35 +01:00
parent e9f9e08450
commit 78fa98c000
3 changed files with 16 additions and 11 deletions

View File

@@ -617,6 +617,11 @@ export class YText extends AbstractType {
this._pending = string !== undefined ? [() => this.insert(0, string)] : []
}
/**
* Number of characters of this text type.
*
* @type {number}
*/
get length () {
return this._length
}