all YArray.tests type fixes

This commit is contained in:
Kevin Jahns
2019-04-03 02:30:44 +02:00
parent e23582b1cd
commit 415de1cc4c
17 changed files with 383 additions and 180 deletions

View File

@@ -45,7 +45,7 @@ export class DeleteSet {
* @param {number} clock
* @return {number|null}
*/
export const findIndexSS = (dis, clock) => {
export const findIndexDS = (dis, clock) => {
let left = 0
let right = dis.length
while (left <= right) {
@@ -71,7 +71,7 @@ export const findIndexSS = (dis, clock) => {
*/
export const isDeleted = (ds, id) => {
const dis = ds.clients.get(id.client)
return dis !== undefined && findIndexSS(dis, id.clock) !== null
return dis !== undefined && findIndexDS(dis, id.clock) !== null
}
/**