From a90aa591a644b90ceb9e1dd57086e31a46b74e58 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Tue, 20 Dec 2022 16:38:50 +0400 Subject: [PATCH] Up blockManager ts --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index a96cb158b..0f7e97a68 100644 --- a/index.d.ts +++ b/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): 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): any; /** * Get all available categories. * It's possible to add categories only within blocks via 'add()' method