I've got following object

```
const CHARACTER_ITEMS = {
  ITEM_ARMS_LIGHT: "",
  ITEM_LEGS_LIGHT: "",
  ITEM_ARMS_HEAVY: "",
  ITEM_LEGS_HEAVY: ""
}

```

I then want to access some values of this object in a dynamic way i.e 

```
const variant = 'HEAVY'; // This is dynamic, based on server response
const arms = CHARACTER_ITEMS[`ITEM_LEGS_${variant}`]

```

Unfortunately this throws an error

> 
> No index signature with a parameter of type 'string' was found on
>  type '{ ITEM\_ARMS\_LIGHT: any; ...
> 
> 
> 

I tried typing my `variant` like this

```
const variant: 'HEAVY' | 'LIGHT' = 'HEAVY';

```

but had no luck, same error comes up. Is there any way to fix this without using a disable comment and preserving type safety? i.e. `variant` will always have correct value that resolves to entry in `CHARACTER_ITEMS`