Skip to content

Commit a6b4dcc

Browse files
committed
style: 💄 run formatter
1 parent d0373f9 commit a6b4dcc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/json-crdt/log/Log.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ import type {JsonNode} from '../nodes/types';
3434
*
3535
* @todo Make this implement UILifecycle (start, stop) interface.
3636
*/
37-
export class Log<N extends JsonNode = JsonNode<any>, Metadata extends Record<string, unknown> = Record<string, unknown>> implements Printable {
37+
export class Log<N extends JsonNode = JsonNode<any>, Metadata extends Record<string, unknown> = Record<string, unknown>>
38+
implements Printable
39+
{
3840
/**
3941
* Creates a `PatchLog` instance from a newly JSON CRDT model. Checks if
4042
* the model API buffer has any initial operations applied, if yes, it
@@ -102,7 +104,7 @@ export class Log<N extends JsonNode = JsonNode<any>, Metadata extends Record<str
102104
*/
103105
public readonly end: Model<N> = start(),
104106

105-
metadata?: Metadata
107+
metadata?: Metadata,
106108
) {
107109
const onPatch = (patch: Patch) => {
108110
const id = patch.getId();
@@ -112,7 +114,7 @@ export class Log<N extends JsonNode = JsonNode<any>, Metadata extends Record<str
112114
const api = end.api;
113115
this.__onPatch = api.onPatch.listen(onPatch);
114116
this.__onFlush = api.onFlush.listen(onPatch);
115-
this.metadata = metadata ?? {} as Metadata;
117+
this.metadata = metadata ?? ({} as Metadata);
116118
}
117119

118120
/**

0 commit comments

Comments
 (0)