Trilium Frontend API
    Preparing search index...

    Interface DifferItemRoot

    A single diff item for a changed root.

    interface DifferItemRoot {
        attributes?: Record<string, { newValue: unknown; oldValue: unknown }>;
        name: string;
        state?: "attached" | "detached";
    }
    Index

    Properties

    attributes?: Record<string, { newValue: unknown; oldValue: unknown }>

    Keeps all attribute changes that happened on the root.

    The keys are keys of the changed attributes. The values are objects containing the attribute value before the change (oldValue) and after the change (newValue).

    Note, that if the root state changed (state is set), then attributes property will not be set. All attributes should be handled together with the root being attached or detached.

    name: string

    Name of the changed root.

    state?: "attached" | "detached"

    Set accordingly if the root got attached or detached. Otherwise, not set.