Interface Identifiable

Something in the document that can be identified by ID. All operations have IDs and operations result into JSON nodes and chunks, which also have IDs.

interface Identifiable {
    id: ITimestampStruct;
    span?(): number;
    toString(tab?): string;
}

Hierarchy (view full)

Properties

Methods

Properties

Unique ID within a document.

Methods

  • Sometimes an Identifiable can be a compound entity, which holds multiple entries with sequentially growing timestamps. In this case span represents the number of entries.

    Returns number

  • Parameters

    • Optional tab: string

    Returns string