# Block object extension help

**URL:** https://forum.makecode.com/t/block-object-extension-help/4463
**Category:** Help
**Created:** [November 16, 2020, 10:30pm UTC](https://forum.makecode.com/t/block-object-extension-help/4463 "2020-11-16T22:30:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)
#### Post date: [November 16, 2020, 10:30pm UTC](https://forum.makecode.com/t/block-object-extension-help/4463/1 "2020-11-16T22:30:33Z")

</div>

I have this code that uses the `blockMenu` and `blockObject` extensions:

```auto
let regular_image: Image = blockObject.getImageProperty(shop_list[blockMenu.selectedMenuIndex()], ImageProp.regular_image)

```

Which gives me this error:

```auto
Element implicitly has an 'any' type because type 'BlockObject' has no index signature.

```

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/dbd846d52f6d7f0e69758a43d39afb3fa7c0c4ee.png)

What to do?

`shop_list` is defined as:

```auto
let shop_list: blockObject.BlockObject = [] // List of blockObject.BlockObjects returned from a function

```

Here is the share link:

> **[Aquarium Simulator](https://arcade.makecode.com/41064-04363-76353-98449)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [November 16, 2020, 10:55pm UTC](https://forum.makecode.com/t/block-object-extension-help/4463/2 "2020-11-16T22:55:20Z")

</div>

Shop list is an array of BlockObjects, not a single block objects; it should be defined like this, with `[]` at the end to indicate it is an array: ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/ecbd536d7acb12ec45faebb97f031d77a1ce4548.png)

> **[Aquarium Simulator](https://arcade.makecode.com/90973-06659-42060-77833)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
