Revert "use global namespace"

This reverts commit 24c3a9abd3.

# Conflicts:
#	packages/core/src/Editor.ts
This commit is contained in:
Philipp Kühn
2020-11-16 16:58:30 +01:00
parent 0cee9fb3b7
commit 0c9ce26c02
39 changed files with 118 additions and 197 deletions

View File

@@ -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,
}
}

View File

@@ -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,
}
}

View File

@@ -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,
}
}

View File

@@ -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,
}
}