Type alias TreeChange

TreeChange: {
    actor: ActorID;
    from: number;
    fromPath: number[];
    splitLevel?: number;
    to: number;
    toPath: number[];
    type: Content;
    value?: TreeNode[];
} | {
    actor: ActorID;
    from: number;
    fromPath: number[];
    splitLevel?: number;
    to: number;
    toPath: number[];
    type: Style;
    value: {
        [key: string]: string;
    };
} | {
    actor: ActorID;
    from: number;
    fromPath: number[];
    splitLevel?: number;
    to: number;
    toPath: number[];
    type: RemoveStyle;
    value?: string[];
}

TreeChange represents the change in the tree.

Type declaration

  • actor: ActorID
  • from: number
  • fromPath: number[]
  • Optional splitLevel?: number
  • to: number
  • toPath: number[]
  • type: Content
  • Optional value?: TreeNode[]

Type declaration

  • actor: ActorID
  • from: number
  • fromPath: number[]
  • Optional splitLevel?: number
  • to: number
  • toPath: number[]
  • type: Style
  • value: {
        [key: string]: string;
    }
    • [key: string]: string

Type declaration

  • actor: ActorID
  • from: number
  • fromPath: number[]
  • Optional splitLevel?: number
  • to: number
  • toPath: number[]
  • type: RemoveStyle
  • Optional value?: string[]