From d266ddb14a25d1969c3951d8c43bf72a092bf073 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 25 Aug 2022 15:36:37 +0200 Subject: [PATCH] Update component traits TS --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 97381bb15..55ea0a141 100644 --- a/index.d.ts +++ b/index.d.ts @@ -2123,14 +2123,14 @@ declare namespace grapesjs { * Component's traits. More about it [here](/modules/Traits.html). Default: `['id', 'title']` * @defaultValue '' */ - traits?: TraitOptions[] | String[] | Backbone.Collection; + traits?: Partial[] | string[] | Backbone.Collection; /** * Indicates an array of properties which will be inhereted by all NEW appended children. For example if you create a component likes this: `{ removable: false, draggable: false, propagate: ['removable', 'draggable'] }` and append some new component inside, the new added component will get the exact same properties indicated in the `propagate` array (and the `propagate` property itself). Default: `[]` * @defaultValue [] */ - propagate?: String[]; + propagate?: string[]; /** * Set an array of items to show up inside the toolbar when the component is selected (move, clone, delete). Eg. `toolbar: [ { attributes: {class: 'fa fa-arrows'}, command: 'tlb-move' }, ... ]`.