Skip to content

Commit

Permalink
Assert nodesToDelete type
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunwoo.jo authored and hackerwins committed Nov 18, 2020
1 parent c4b3f1d commit 2a86f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/document/json/rga_tree_split.ts
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ export class RGATreeSplit<T extends RGATreeSplitValue> {
const isRemote = !!latestCreatedAtMapByActor;
const changes: Array<Change> = [];
const createdAtMapByActor = new Map();
const nodesToDelete = [];
const nodesToDelete: Array<RGATreeSplitNode<T>> = [];

// NOTE: We need to collect indexes for change first then delete the nodes.
for (const node of candidates) {
Expand Down

0 comments on commit 2a86f30

Please sign in to comment.