From ab39b6a1fc550215447ca26d8411dacbcfa18a3b Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 4 Aug 2022 15:00:37 +0200 Subject: [PATCH] Up command add method in TS --- index.d.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index d7368530e..a4c8baebb 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1701,10 +1701,12 @@ declare namespace grapesjs { */ add( id: string, - command: (editor: Editor, sender?: any, opts?: Record) => any | { - run: (editor: Editor, sender?: any) => any; - stop: (editor: Editor, sender?: any) => any; - } + command: ((editor: Editor, sender?: any, opts?: Record) => any) | + { + run?: (editor: Editor, sender?: any, opts?: Record) => any; + stop?: (editor: Editor, sender?: any, opts?: Record) => any; + [key: string]: unknown; + } ): void; /** * Get command by ID