Skip to content

Commit

Permalink
feat(vue-kit): export vue sfc instance type
Browse files Browse the repository at this point in the history
  • Loading branch information
litingyes committed Mar 24, 2024
1 parent 2c35721 commit c55e238
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/vue-kit/src/components/NoteEditor.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<script lang="ts" setup>
import { ref } from 'vue'
import type { Editor } from '@tiptap/core'
import { EditorContent } from '@tiptap/vue-3'
import { useNoteEditor } from '../composables/useNoteEditor'
export interface NodeEditorInstance {
editor: Editor
}
const noteEditorRef = ref()
const { editor } = useNoteEditor()
Expand Down
1 change: 1 addition & 0 deletions packages/vue-kit/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './setupKit'
export * from './composables/useNoteEditor'
export * from './components/NoteEditor.vue'
export { default as NodeEditor } from './components/NoteEditor.vue'

0 comments on commit c55e238

Please sign in to comment.