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