diff --git a/packages/vue-3/src/useEditor.ts b/packages/vue-3/src/useEditor.ts index 20a1c409..2e6a64d1 100644 --- a/packages/vue-3/src/useEditor.ts +++ b/packages/vue-3/src/useEditor.ts @@ -1,15 +1,9 @@ -import { - onMounted, - onBeforeUnmount, - shallowRef, - Ref, -} from 'vue' +import { onMounted, onBeforeUnmount, shallowRef } from 'vue' import { EditorOptions } from '@tiptap/core' import { Editor } from './Editor' -// We set a custom return type. Otherwise TypeScript will throw TS4023. Not sure why. -export const useEditor = (options: Partial = {}): Ref => { - const editor = shallowRef() as Ref +export const useEditor = (options: Partial = {}) => { + const editor = shallowRef() onMounted(() => { editor.value = new Editor(options)