Cotal TypeScript packages
    Preparing search index...

    Interface SeatCheckpointWriter

    interface SeatCheckpointWriter {
        directory: string;
        captureFile(
            name: string,
            kind:
                | "bundle"
                | "index-diff"
                | "worktree-diff"
                | "untracked"
                | "session-store"
                | "session-pointer",
            source: string,
            restore?: SeatCheckpointDestination,
        ): SeatCheckpointFile;
        cleanup(): void;
        seal<Entry>(
            checkpoint: Omit<SeatCheckpoint<Entry>, "format">,
        ): SeatCheckpoint<Entry>;
    }
    Index
    directory: string
    • Copy one file into the checkpoint, returning its content address. restore is where the destination puts it back, required for a file a restore has to place rather than consume.

      Parameters

      • name: string
      • kind:
            | "bundle"
            | "index-diff"
            | "worktree-diff"
            | "untracked"
            | "session-store"
            | "session-pointer"
      • source: string
      • Optionalrestore: SeatCheckpointDestination

      Returns SeatCheckpointFile