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