From 270d1964951faa086f2ff2a93ee75b30d11f59ec Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Mon, 12 Sep 2022 15:51:04 +0400 Subject: [PATCH] Add BlockCategoryOptions --- index.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index d0f79ecbd..6894b9b13 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1580,6 +1580,13 @@ declare namespace grapesjs { ): HTMLElement; } + interface BlockCategoryOptions { + id: string, + label: string, + open?: boolean, + attributes?: Record, + } + interface BlockOptions { /** * Block label, eg. `My block` @@ -1598,7 +1605,7 @@ declare namespace grapesjs { * Block category, eg. `Basic blocks` * @defaultValue '' */ - category?: string; + category?: string | BlockCategoryOptions; /** * If true, triggers the `active` event on the dropped component. */