add AllExtensions interface

This commit is contained in:
Philipp Kühn
2020-10-22 22:40:40 +02:00
parent 79172753ef
commit 6746163dda
23 changed files with 231 additions and 180 deletions

View File

@@ -1,6 +1,14 @@
import { createNode } from '@tiptap/core'
export default createNode({
const Text = createNode({
name: 'text',
group: 'inline',
})
export default Text
declare module '@tiptap/core/src/Editor' {
interface AllExtensions {
Text: typeof Text,
}
}