I create my own interface

```
interface MyType {
    [key :string] :boolean
}

```

And I want to use spread operator to update elements of array with new A object. Let's say:

```
aList = new Array<MyType >({['something']:true,['something2']:true});

```

and I would like to update element in this array by using spread operator like:

```
const B : MyType = {['something']: false};
this.aList = {...aList, B};

```

But I'm still getting error's , or B is adding to a aList like a new element . What could be wrong ?

* I can't just filter through aList due to the fact that B is in my scenario a $event with any type