Revert "use global namespace"
This reverts commit 24c3a9abd3.
# Conflicts:
# packages/core/src/Editor.ts
This commit is contained in:
@@ -147,10 +147,8 @@ export const Commands = Extension.create({
|
||||
},
|
||||
})
|
||||
|
||||
declare global {
|
||||
namespace Tiptap {
|
||||
interface AllExtensions {
|
||||
Commands: typeof Commands,
|
||||
}
|
||||
declare module '@tiptap/core' {
|
||||
interface AllExtensions {
|
||||
Commands: typeof Commands,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,10 +14,8 @@ export const Editable = Extension.create({
|
||||
},
|
||||
})
|
||||
|
||||
declare global {
|
||||
namespace Tiptap {
|
||||
interface AllExtensions {
|
||||
Editable: typeof Editable,
|
||||
}
|
||||
declare module '@tiptap/core' {
|
||||
interface AllExtensions {
|
||||
Editable: typeof Editable,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,10 +36,8 @@ export const FocusEvents = Extension.create({
|
||||
},
|
||||
})
|
||||
|
||||
declare global {
|
||||
namespace Tiptap {
|
||||
interface AllExtensions {
|
||||
FocusEvents: typeof FocusEvents,
|
||||
}
|
||||
declare module '@tiptap/core' {
|
||||
interface AllExtensions {
|
||||
FocusEvents: typeof FocusEvents,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,10 +45,8 @@ export const Keymap = Extension.create({
|
||||
},
|
||||
})
|
||||
|
||||
declare global {
|
||||
namespace Tiptap {
|
||||
interface AllExtensions {
|
||||
Keymap: typeof Keymap,
|
||||
}
|
||||
declare module '@tiptap/core' {
|
||||
interface AllExtensions {
|
||||
Keymap: typeof Keymap,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user