refactor: recreate extension exports

This commit is contained in:
Florian Wiech
2020-12-07 21:32:50 +01:00
parent 11de3a287f
commit 4142637921
62 changed files with 186 additions and 93 deletions

View File

@@ -10,7 +10,7 @@ export interface CollaborationOptions {
provider: any,
}
const Collaboration = Extension.create({
export const Collaboration = Extension.create({
name: 'collaboration',
defaultOptions: <CollaborationOptions>{
@@ -60,8 +60,6 @@ const Collaboration = Extension.create({
},
})
export default Collaboration
declare module '@tiptap/core' {
interface AllExtensions {
Collaboration: typeof Collaboration,

View File

@@ -0,0 +1,5 @@
import { Collaboration } from './collaboration'
export * from './collaboration'
export default Collaboration