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
parent
commit
b3609cdd3b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      index.d.ts

2
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'] }`

Loading…
Cancel
Save