@wangeditor-next/code-highlight
Version:
wangEditor code-highlight module
8 lines (7 loc) • 349 B
TypeScript
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;