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

@@ -7,7 +7,7 @@ export interface HardBreakOptions {
},
}
const HardBreak = Node.create({
export const HardBreak = Node.create({
name: 'hardBreak',
defaultOptions: <HardBreakOptions>{
@@ -59,8 +59,6 @@ const HardBreak = Node.create({
},
})
export default HardBreak
declare module '@tiptap/core' {
interface AllExtensions {
HardBreak: typeof HardBreak,

View File

@@ -0,0 +1,5 @@
import { HardBreak } from './hard-break'
export * from './hard-break'
export default HardBreak