Georeferencing API
    Preparing search index...

    Interface GuardContext

    Snapshot presented before removing, replacing or restoring over unsaved work.

    interface GuardContext {
        canSave: boolean;
        document: Document;
        saveKind: "draft" | "features" | null;
    }
    Index
    canSave: boolean

    Whether a configured host handler can save this snapshot.

    document: Document

    Document at guard invocation. New edits can cause the guard to run again.

    saveKind: "draft" | "features" | null

    Preferred eligible handler: draft first, otherwise accepted features, or null.