TS4111

Property 'BUCKET' comes from an index signature, so it must be accessed with ['BUCKET'].

Broken Code ❌

const env: { [`SHOP_${number}_URL`]: string } = {
  SHOP_123_URL: '',
};

Solution:

To resolve this, ensure that you access properties defined by an index signature using the bracket notation.

Fixed Code ✔️

const env: { [key: string]: string } = {
  [`SHOP_123_URL`]: '',
};