IFClite TypeScript API
    Preparing search index...

    Interface Transaction

    A transaction collects ops applied step by step (e.g. a drag, or an agent iterating in a sandbox) and commits them as ONE history entry.

    interface Transaction {
        doc: StudioDocument;
        ops: readonly StudioOp[];
        apply(ops: readonly StudioOp[]): void;
        commit(info?: CommitInfo): StudioState;
        rollback(): StudioState;
    }
    Index

    The document with every op applied so far.

    ops: readonly StudioOp[]
    • Apply more ops to the preview; throws OpApplyError and keeps the previous preview.

      Parameters

      Returns void