refactor: recreate extension exports
This commit is contained in:
@@ -11,7 +11,7 @@ export interface HorizontalRuleOptions {
|
||||
},
|
||||
}
|
||||
|
||||
const HorizontalRule = Node.create({
|
||||
export const HorizontalRule = Node.create({
|
||||
name: 'horizontalRule',
|
||||
|
||||
defaultOptions: <HorizontalRuleOptions>{
|
||||
@@ -52,8 +52,6 @@ const HorizontalRule = Node.create({
|
||||
},
|
||||
})
|
||||
|
||||
export default HorizontalRule
|
||||
|
||||
declare module '@tiptap/core' {
|
||||
interface AllExtensions {
|
||||
HorizontalRule: typeof HorizontalRule,
|
||||
|
||||
5
packages/extension-horizontal-rule/src/index.ts
Normal file
5
packages/extension-horizontal-rule/src/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { HorizontalRule } from './horizontal-rule'
|
||||
|
||||
export * from './horizontal-rule'
|
||||
|
||||
export default HorizontalRule
|
||||
Reference in New Issue
Block a user