Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
fix: correct TreeReplica.get return type
Browse files Browse the repository at this point in the history
  • Loading branch information
matchai committed May 3, 2021
1 parent 09cdb12 commit 7172804
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/TreeReplica.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import { Clock } from "./Clock";
import { OpMove } from "./OpMove";
import { State } from "./State";
import { TreeNode } from "./TreeNode";

export class TreeReplica<Id, Metadata> {
/** The Tree state */
Expand All @@ -29,8 +30,8 @@ export class TreeReplica<Id, Metadata> {
}

/** Get a node by its id */
get(id: Id) {
this.tree.get(id);
get(id: Id): TreeNode<Id, Metadata> | undefined {
return this.tree.get(id);
}

/**
Expand Down

0 comments on commit 7172804

Please sign in to comment.