TomTom Maps for JavaScript
    Preparing search index...

    Variable formatStateDigestDiffConst

    formatStateDigestDiff: (prev: StateDigest, next: StateDigest) => string | null

    Produce a compact, LLM-readable summary of the differences between two digests, or null when nothing changed. The output is short enough to prepend to a user prompt without bloating the conversation; longer per-field diffs are deliberately omitted.

    Type Declaration

    const prev = getStateDigest(state);
    // ... user clicks around in the UI ...
    const diff = formatStateDigestDiff(prev, getStateDigest(state));
    // → '[map state changed since last response: places shown as pins: "amsterdam-cinemas"; route now "routes-2"]'