Skip to content

Commit

Permalink
chore(json-crdt): 🤖 add todos
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Sep 17, 2024
1 parent e668d84 commit 63bd66a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/json-crdt-patch/PatchBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class PatchBuilder {
*
* @param clock Clock to use for generating timestamps.
*/
constructor(public readonly clock: IClock) {
constructor(public clock: IClock) {
this.patch = new Patch();
}

Expand Down
2 changes: 2 additions & 0 deletions src/json-crdt-patch/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export const enum SESSION {
* attributing it to any specific user. For example, when the initial document
* is created, the default patch can be applied on all clients to result in
* the same initial state on all clients.
*
* @todo Rename or alias this to `SCHEMA`.
*/
GLOBAL = 2,

Expand Down
2 changes: 2 additions & 0 deletions src/json-crdt/nodes/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export interface JsonNode<View = unknown> extends Identifiable {

/**
* Returns a list of immediate child nodes.
*
* @todo: Use `UndefIterator` interface here.
*/
children(callback: (node: JsonNode) => void): void;

Expand Down

0 comments on commit 63bd66a

Please sign in to comment.