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. */