all YArray.tests type fixes
This commit is contained in:
@@ -37,6 +37,17 @@ export class ItemDeleted extends AbstractItem {
|
||||
copy (id, left, right, parent, parentSub) {
|
||||
return new ItemDeleted(id, left, right, parent, parentSub, this.length)
|
||||
}
|
||||
/**
|
||||
* @param {ItemDeleted} right
|
||||
* @return {boolean}
|
||||
*/
|
||||
mergeWith (right) {
|
||||
if (right.origin === this && this.right === right) {
|
||||
this.length += right.length
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
/**
|
||||
* @param {encoding.Encoder} encoder
|
||||
* @param {number} offset
|
||||
|
||||
Reference in New Issue
Block a user