From 4137e00d987c152b883022525056df94ad033be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Fri, 16 Apr 2021 00:17:09 +0200 Subject: [PATCH] fix: fix type for emitUpdate, fix #276 --- packages/core/src/commands/clearContent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/commands/clearContent.ts b/packages/core/src/commands/clearContent.ts index 479b1596..a925cb45 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, } } }