UNPKG

@wangeditor-next/code-highlight

Version:
8 lines (7 loc) 349 B
import { Editor, Span } from 'slate'; import { WithTableOptions } from './options'; /** * Determines whether two paths belong to the same types by checking * if they share a common ancestor node of type table */ export declare function hasCommon(editor: Editor, [path, another]: Span, ...types: Array<keyof WithTableOptions['blocks']>): boolean;