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

@@ -8,7 +8,7 @@ export interface CollaborationOptions {
type: any,
}
export default createExtension({
const Collaboration = createExtension({
name: 'collaboration',
defaultOptions: <CollaborationOptions>{
@@ -31,3 +31,11 @@ export default createExtension({
}
},
})
export default Collaboration
declare module '@tiptap/core/src/Editor' {
interface AllExtensions {
Collaboration: typeof Collaboration,
}
}