Interface VideoEditorDocumentSync

    interface VideoEditorDocumentSync {
        canRedo: boolean;
        canUndo: boolean;
        doc: Document;
        generateId: () => string;
        redo: () => void;
        reset: () => void;
        transact: <T>(fn: () => T) => T;
        undo: () => void;
    }

    Implemented by

    Index
    canRedo: boolean

    A change was undone and can be reapplied

    canUndo: boolean

    The editor has a change that can be undone

    generateId: () => string

    Generate A unique ID

    redo: () => void

    Redo the last editor action.

    reset: () => void

    Clear undo hsitory

    transact: <T>(fn: () => T) => T
    undo: () => void

    Undo the last editor action.