Browse Source

Update command add in TS. Closes #4385

pull/4407/head
Artur Arseniev 4 years ago
parent
commit
d26740c664
  1. 6
      index.d.ts

6
index.d.ts

@ -1701,9 +1701,9 @@ declare namespace grapesjs {
*/ */
add( add(
id: string, id: string,
command: (editor: Editor) => void | { command: (editor: Editor, sender?: any, opts?: Record<string, any>) => any | {
run: (editor: Editor, sender?: any) => void; run: (editor: Editor, sender?: any) => any;
stop: (editor: Editor, sender?: any) => void; stop: (editor: Editor, sender?: any) => any;
} }
): void; ): void;
/** /**

Loading…
Cancel
Save