File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11export * from "loro-wasm" ;
2- import { Delta } from "loro-wasm" ;
2+ import { Delta , OpId } from "loro-wasm" ;
33import { PrelimText , PrelimList , PrelimMap } from "loro-wasm" ;
44import {
55 ContainerID ,
@@ -55,6 +55,7 @@ export type Value =
5555
5656export type Container = LoroList | LoroMap | LoroText | LoroTree ;
5757export type Prelim = PrelimList | PrelimMap | PrelimText ;
58+ export type Frontiers = OpId [ ] ;
5859
5960/**
6061 * Represents a path to identify the exact location of an event's target.
@@ -110,8 +111,8 @@ export type MapDiff = {
110111export type TreeDiff = {
111112 type : "tree" ;
112113 diff :
113- | { target : TreeID ; action : "create" | "delete" }
114- | { target : TreeID ; action : "move" ; parent : TreeID } ;
114+ | { target : TreeID ; action : "create" | "delete" }
115+ | { target : TreeID ; action : "move" ; parent : TreeID } ;
115116} ;
116117
117118export type Diff = ListDiff | TextDiff | MapDiff | TreeDiff ;
You can’t perform that action at this time.
0 commit comments