UNPKG

lexical-vue

Version:

An extensible Vue 3 web text-editor based on Lexical.

4 lines (3 loc) 279 B
import type { EntityMatch } from '@lexical/text'; import type { Klass, TextNode } from 'lexical'; export declare function useLexicalTextEntity<T extends TextNode>(getMatch: (text: string) => null | EntityMatch, targetNode: Klass<T>, createNode: (textNode: TextNode) => T): void;