IFClite TypeScript API
    Preparing search index...

    Interface DiffEntry<TRef>

    interface DiffEntry<TRef = unknown> {
        base?: EntityFingerprint<TRef>;
        changedComponents?: string[];
        changeKinds: DiffChangeKind[];
        head?: EntityFingerprint<TRef>;
        key: string;
        state: DiffState;
    }

    Type Parameters

    • TRef = unknown
    Index

    The entity in the base revision (deleted / modified / unchanged).

    changedComponents?: string[]

    Component keys whose sub-hash differs between base and head. Present only when both fingerprints carry components (sub-hash mode); a key present on one side only counts as changed.

    changeKinds: DiffChangeKind[]

    Which signals changed — non-empty only when state === 'modified'. Useful for an inspect panel ("Geometry, Data") even though the colour is driven by state.

    The entity in the head revision (added / modified / unchanged).

    key: string

    The entity's stable key (its EntityFingerprint.key).

    state: DiffState