Browse Source

Up command add method in TS

pull/4504/head
Artur Arseniev 4 years ago
parent
commit
ab39b6a1fc
  1. 10
      index.d.ts

10
index.d.ts

@ -1701,10 +1701,12 @@ declare namespace grapesjs {
*/
add(
id: string,
command: (editor: Editor, sender?: any, opts?: Record<string, any>) => any | {
run: (editor: Editor, sender?: any) => any;
stop: (editor: Editor, sender?: any) => any;
}
command: ((editor: Editor, sender?: any, opts?: Record<string, any>) => any) |
{
run?: (editor: Editor, sender?: any, opts?: Record<string, any>) => any;
stop?: (editor: Editor, sender?: any, opts?: Record<string, any>) => any;
[key: string]: unknown;
}
): void;
/**
* Get command by ID

Loading…
Cancel
Save