UNPKG

lexical-vue

Version:

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

37 lines (36 loc) 1.91 kB
import type { EditorThemeClasses, HTMLConfig, Klass, LexicalEditor, LexicalNode, LexicalNodeReplacement } from 'lexical'; import type { InitialEditorStateType } from '../types'; export type InitialConfigType = Readonly<{ namespace: string; nodes?: ReadonlyArray<Klass<LexicalNode> | LexicalNodeReplacement>; onError: (error: Error, editor: LexicalEditor) => void; editable?: boolean; theme?: EditorThemeClasses; editorState?: InitialEditorStateType; html?: HTMLConfig; }>; type __VLS_Props = { initialConfig: InitialConfigType; }; declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>; declare var __VLS_1: {}; type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & { default?: (props: typeof __VLS_1) => any; }>; declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & { error: (error: Error, editor: LexicalEditor) => any; }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{ onError?: ((error: Error, editor: LexicalEditor) => any) | undefined; }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>; declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & { error: (error: Error, editor: LexicalEditor) => any; }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{ onError?: ((error: Error, editor: LexicalEditor) => any) | undefined; }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>; declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>; export default _default; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; };