From 9a40c17b3422b22a2cfe1fbac76ca06c9e78ae8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Sun, 25 Apr 2021 21:04:26 +0200 Subject: [PATCH] fix: set correct type for emitUpdate --- packages/core/src/commands/clearContent.ts | 2 +- packages/core/src/commands/setContent.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/commands/clearContent.ts b/packages/core/src/commands/clearContent.ts index a925cb4575f..c28cf448209 100644 --- a/packages/core/src/commands/clearContent.ts +++ b/packages/core/src/commands/clearContent.ts @@ -6,7 +6,7 @@ declare module '@tiptap/core' { /** * Clear the whole document. */ - clearContent: (emitUpdate?: Boolean) => Command, + clearContent: (emitUpdate?: boolean) => Command, } } } diff --git a/packages/core/src/commands/setContent.ts b/packages/core/src/commands/setContent.ts index 674b538d349..90d4ee59784 100644 --- a/packages/core/src/commands/setContent.ts +++ b/packages/core/src/commands/setContent.ts @@ -10,7 +10,7 @@ declare module '@tiptap/core' { */ setContent: ( content: Content, - emitUpdate?: Boolean, + emitUpdate?: boolean, parseOptions?: Record, ) => Command, }