From a6901c32078f8968c935f5da83d051fdfdb53507 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 4 Aug 2022 15:06:36 +0200 Subject: [PATCH] Update Command events in TS --- index.d.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index a4c8baebb..fe48bc57b 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1215,11 +1215,9 @@ declare namespace grapesjs { type ModalEvent = 'modal:open' | 'modal:close'; type CommandEvent = - | 'run:{commandName}' - | 'stop:{commandName}' - | 'run:{commandName}:before' - | 'stop:{commandName}:before' - | 'abort:{commandName}'; + | `run:${string}` + | `stop:${string}` + | `abort:${string}`; type GeneralEvent = 'canvasScroll' | 'undo' | 'redo' | 'load';