UNPKG

marshall-y-slate

Version:
18 lines (17 loc) 493 B
import { Operation } from 'slate'; import { SharedType } from '../model'; import { YjsEditor } from '../plugin'; /** * Applies a slate operation to a SharedType * * @param sharedType * @param op */ export declare function applySlateOp(sharedType: SharedType, op: Operation): SharedType; /** * Applies slate operations to a SharedType * * @param sharedType * @param op */ export default function applySlateOps(sharedType: SharedType, ops: Operation[], editor: YjsEditor): SharedType;