From 62fe8d60736c647ca969e7a40e600e25eaca607f Mon Sep 17 00:00:00 2001 From: tyutony <30591406+tyutony@users.noreply.github.com> Date: Fri, 12 Aug 2022 21:26:52 +0800 Subject: [PATCH] Fix wrong describe type on EditorConfig dragMode (#4505) config dragMode describe would be 'translate' | 'absolute' and not boolean. it cause wrong alert when use typescript. Co-authored-by: Artur Arseniev --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index d1beb8bec..a7c975d24 100644 --- a/index.d.ts +++ b/index.d.ts @@ -175,7 +175,7 @@ declare namespace grapesjs { * 'absolute' - Move components absolutely (design tools way) * 'translate' - Use translate CSS from transform property * To get more about this feature read: https://github.com/artf/grapesjs/issues/1936 */ - dragMode?: boolean; + dragMode?: 'translate' | 'absolute'; /** When the editor is placed in a scrollable container (eg. modals) this might * cause elements inside the canvas (eg. floating toolbars) to be misaligned.