@roomy-chat/sdk
    Preparing search index...

    Type Alias UndoConfig

    type UndoConfig = {
        excludeOriginPrefixes?: string[];
        maxUndoSteps?: number;
        mergeInterval?: number;
        onPop?: (
            isUndo: boolean,
            value: { cursors: Cursor[]; value: Value },
            counterRange: { end: number; start: number },
        ) => void;
        onPush?: (
            isUndo: boolean,
            counterRange: { end: number; start: number },
            event?: LoroEventBatch,
        ) => { cursors: Cursor[]; value: Value };
    }
    Index

    Properties

    excludeOriginPrefixes?: string[]
    maxUndoSteps?: number
    mergeInterval?: number
    onPop?: (
        isUndo: boolean,
        value: { cursors: Cursor[]; value: Value },
        counterRange: { end: number; start: number },
    ) => void
    onPush?: (
        isUndo: boolean,
        counterRange: { end: number; start: number },
        event?: LoroEventBatch,
    ) => { cursors: Cursor[]; value: Value }