Browse Source
Correct type traits to support a list of string and object (#4536)
Update index.d.ts
pull/4557/head
Salem Mohammed Shamakh
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
index.d.ts
|
|
|
@ -2123,7 +2123,7 @@ declare namespace grapesjs { |
|
|
|
* Component's traits. More about it [here](/modules/Traits.html). Default: `['id', 'title']` |
|
|
|
* @defaultValue '' |
|
|
|
*/ |
|
|
|
traits?: TraitOptions[] | String[] | Backbone.Collection<Trait>; |
|
|
|
traits?: (TraitOptions | String)[] | Backbone.Collection<Trait>; |
|
|
|
/** |
|
|
|
* 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'] }` |
|
|
|
|