chore: update types

This commit is contained in:
Nick the Sick 2024-06-26 22:47:07 +02:00
parent c121d53d19
commit 45f58cae06
No known key found for this signature in database
GPG Key ID: F575992F156E5BCC
4 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
import Vue, { Component, PropType } from 'vue'
import Vue, { Component, CreateElement, PropType } from 'vue'
import { Editor } from './Editor.js'
@ -42,7 +42,7 @@ export const EditorContent: Component = {
},
},
render(createElement) {
render(createElement: CreateElement) {
return createElement('div')
},

View File

@ -1,5 +1,5 @@
import { FloatingMenuPlugin, FloatingMenuPluginProps } from '@tiptap/extension-floating-menu'
import Vue, { Component, PropType } from 'vue'
import Vue, { Component, CreateElement, PropType } from 'vue'
export interface FloatingMenuInterface extends Vue {
pluginKey: FloatingMenuPluginProps['pluginKey'],
@ -54,7 +54,7 @@ export const FloatingMenu: Component = {
},
},
render(this: FloatingMenuInterface, createElement) {
render(this: FloatingMenuInterface, createElement: CreateElement) {
return createElement('div', { style: { visibility: 'hidden' } }, this.$slots.default)
},

View File

@ -1,4 +1,4 @@
import Vue, { Component } from 'vue'
import Vue, { Component, CreateElement } from 'vue'
export interface NodeViewContentInterface extends Vue {
as: string,
@ -12,7 +12,7 @@ export const NodeViewContent: Component = {
},
},
render(this: NodeViewContentInterface, createElement) {
render(this: NodeViewContentInterface, createElement: CreateElement) {
return createElement(this.as, {
style: {
whiteSpace: 'pre-wrap',

View File

@ -1,4 +1,4 @@
import Vue, { Component } from 'vue'
import Vue, { Component, CreateElement } from 'vue'
export interface NodeViewWrapperInterface extends Vue {
as: string,
@ -18,7 +18,7 @@ export const NodeViewWrapper: Component = {
inject: ['onDragStart', 'decorationClasses'],
render(this: NodeViewWrapperInterface, createElement) {
render(this: NodeViewWrapperInterface, createElement: CreateElement) {
return createElement(
this.as,
{