Type Alias ContainerType

ContainerType: "Text" | "Map" | "List" | "Tree" | "MovableList" | "Counter"

Container types supported by loro.

It is most commonly used to specify the type of sub-container to be created.

import { LoroDoc, LoroText } from "loro-crdt";

const doc = new LoroDoc();
const list = doc.getList("list");
list.insert(0, 100);
const text = list.insertContainer(1, new LoroText());