diff --git a/index.d.ts b/index.d.ts index 8642f2f46..d7368530e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1701,9 +1701,9 @@ declare namespace grapesjs { */ add( id: string, - command: (editor: Editor) => void | { - run: (editor: Editor, sender?: any) => void; - stop: (editor: Editor, sender?: any) => void; + command: (editor: Editor, sender?: any, opts?: Record) => any | { + run: (editor: Editor, sender?: any) => any; + stop: (editor: Editor, sender?: any) => any; } ): void; /**