use global namespace

This commit is contained in:
Philipp Kühn
2020-11-16 15:40:05 +01:00
parent 3a6479eeca
commit 24c3a9abd3
39 changed files with 243 additions and 138 deletions

View File

@@ -50,8 +50,10 @@ const HardBreak = Node.create({
export default HardBreak
declare module '@tiptap/core' {
interface AllExtensions {
HardBreak: typeof HardBreak,
declare global {
namespace Tiptap {
interface AllExtensions {
HardBreak: typeof HardBreak,
}
}
}