Fray Electron
    Preparing search index...

    Interface ProjectState

    Renderer runtime state for one project; the Engine remains authoritative for persisted data and history.

    interface ProjectState {
        direction: "undo" | "redo";
        document: WorkspaceDocument;
        id: string;
        latest: number;
        path: string;
        pending: boolean;
        revision: number;
        saved: Map<number, string>;
    }
    Index
    direction: "undo" | "redo"

    Direction of the most recent undo or redo request, so an answer with no change can say what ran out.

    Runtime workspace document displayed by the renderer.

    id: string

    Stable Engine-assigned project identity, unaffected by rename.

    latest: number

    The highest revision ever recorded, since revisions are never reused.

    path: string

    Current filesystem path.

    pending: boolean

    An undo or redo has been sent and not yet answered.

    revision: number

    The revision on screen.

    saved: Map<number, string>

    This session's serialized documents by revision, retained for Engine history reconstruction.