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,7 +1,15 @@
import { createNode } from '@tiptap/core'
export default createNode({
const Document = createNode({
name: 'document',
topNode: true,
content: 'block+',
})
export default Document
declare module '@tiptap/core/src/Editor' {
interface AllExtensions {
Document: typeof Document,
}
}