sync-playground/proto.ts

6 lines
284 B
TypeScript

import { WeakCausalTreeOp } from "./sync/ordt/causal-tree.ts";
import { PlainTextOperation } from "./sync/ordt/plain-text.ts";
export type Packet =
| { t: "init"; ops: WeakCausalTreeOp<PlainTextOperation>[]; you: string }
| { t: "op"; op: WeakCausalTreeOp<PlainTextOperation> };