Browse Source

Up blockManager ts

pull/4830/head
Artur Arseniev 4 years ago
parent
commit
a90aa591a6
  1. 4
      index.d.ts

4
index.d.ts

@ -1630,7 +1630,7 @@ declare namespace grapesjs {
* });
* @param id - Block ID
*/
add(id: string, block: BlockOptions): any;
add(id: string, block: BlockOptions, opts?: Record<string, any>): any;
/**
* Get the block by id.
* @example
@ -1660,7 +1660,7 @@ declare namespace grapesjs {
* const block = blockManager.get('BLOCK_ID');
* blockManager.remove(block);
*/
remove(block: object | string): any;
remove(block: object | string, opts?: Record<string, any>): any;
/**
* Get all available categories.
* It's possible to add categories only within blocks via 'add()' method

Loading…
Cancel
Save