refactoring
This commit is contained in:
@@ -63,7 +63,7 @@ export const Commands = createExtension({
|
||||
},
|
||||
})
|
||||
|
||||
declare module '../Editor' {
|
||||
declare module '@tiptap/core' {
|
||||
interface AllExtensions {
|
||||
Commands: typeof Commands,
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ export const Editable = createExtension({
|
||||
})
|
||||
|
||||
// TODO: Editable circularly references itself!?
|
||||
// declare module '../Editor' {
|
||||
// declare module '@tiptap/core' {
|
||||
// interface AllExtensions {
|
||||
// Editable: typeof Editable,
|
||||
// }
|
||||
|
||||
@@ -36,7 +36,7 @@ export const FocusEvents = createExtension({
|
||||
},
|
||||
})
|
||||
|
||||
declare module '../Editor' {
|
||||
declare module '@tiptap/core' {
|
||||
interface AllExtensions {
|
||||
FocusEvents: typeof FocusEvents,
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ export const Keymap = createExtension({
|
||||
},
|
||||
})
|
||||
|
||||
declare module '../Editor' {
|
||||
declare module '@tiptap/core' {
|
||||
interface AllExtensions {
|
||||
Keymap: typeof Keymap,
|
||||
}
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
export { Editor, Command, CommandsSpec } from './Editor'
|
||||
export {
|
||||
Editor,
|
||||
Command,
|
||||
CommandsSpec,
|
||||
AllExtensions,
|
||||
} from './Editor'
|
||||
|
||||
export * from './Extension'
|
||||
export * from './NodeExtension'
|
||||
|
||||
Reference in New Issue
Block a user