Skip to content

Commit

Permalink
chore: use nodes type from react package
Browse files Browse the repository at this point in the history
  • Loading branch information
wobsoriano committed Jun 24, 2023
1 parent c1f126c commit 61f672f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/LexicalComposer.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
<script setup lang="ts">
import { onMounted, provide } from 'vue'
import type { EditorThemeClasses, LexicalEditor, LexicalNode } from 'lexical'
import type { EditorThemeClasses, Klass, LexicalEditor, LexicalNode } from 'lexical'
import { $createParagraphNode, $getRoot, $getSelection, createEditor } from 'lexical'
import { editorKey } from '../composables/inject'
import type { Class, InitialEditorStateType } from '../types'
import type { InitialEditorStateType } from '../types'
const props = defineProps<{
initialConfig: {
namespace?: string
nodes?: Class<LexicalNode>[]
nodes?: (Klass<LexicalNode> | {
replace: Klass<LexicalNode>
with: <T extends { new (...args: any): any }>(
node: InstanceType<T>,
) => LexicalNode
})[]
editable?: boolean
theme?: EditorThemeClasses
editorState?: InitialEditorStateType
Expand Down

0 comments on commit 61f672f

Please sign in to comment.