add AllExtensions interface
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user