I am getting a eslint no explicit any error in this file.
api.ts:
import axios from "axios";

const BASE_URL = "https://data.ninjakiwi.com/btd6";

async function fetchWithMetadata<T>(
  endpoint: string,
  metadataEndpoint: string
) {
  try {
    const response = await axios.get(`${BASE_URL}/${endpoint}`);
    if (response.data.success) {
      const data = response.data.body;
      const dataWithMetadata = await Promise.all(
        data.map(async (item: any) => {
          const metadataResponse = await axios.get(
            `${BASE_URL}/${endpoint}/${item.id}/${metadataEndpoint}`
          );
          return { ...item, metadata: metadataResponse.data.body };
        })
      );
      return dataWithMetadata as T[];
    } else {
      throw new Error(`Failed to load ${endpoint} data`);
    }
  } catch (error) {
    console.error(`Error fetching ${endpoint}:`, error);
    throw error;
  }
}

export async function getBosses<T>() {
  return fetchWithMetadata<T>("bosses", "metadata/standard");
}

export async function getOdysseys<T>() {
  return fetchWithMetadata<T>("odysseys", "metadata");
}

export async function getBossDetails(bossId: string, mode: string) {
  try {
    const response = await axios.get(
      `${BASE_URL}/bosses/${bossId}/metadata/${mode}`
    );
    if (response.data.success) {
      return response.data.body;
    } else {
      throw new Error("Failed to load boss details");
    }
  } catch (error) {
    console.error("Error fetching boss details:", error);
    return null;
  }
}


An example of data that is fetched is this:
https://data.ninjakiwi.com/btd6/bosses/Phayze14_lzlqagn4/metadata/standard:
{
  "error": null,
  "success": true,
  "body": {
    "name": "Phayze14",
    "createdAt": 0,
    "id": "n/a",
    "creator": null,
    "gameVersion": 0,
    "map": "LuminousCove",
    "mapURL": "https://static-api.nkstatic.com/appdocs/4/assets/opendata/9301b2f3358deb2b808a888f66af4d87_MapSelectLuminousCoveButton.png",
    "mode": "Standard",
    "difficulty": "Medium",
    "disableDoubleCash": false,
    "disableInstas": false,
    "disableMK": false,
    "disablePowers": false,
    "disableSelling": false,
    "startingCash": 1050,
    "abilityCooldownReductionMultiplier": 1,
    "leastCashUsed": -1,
    "leastTiersUsed": -1,
    "noContinues": false,
    "seed": 1,
    "removeableCostMultiplier": 1,
    "roundSets": [
      "default",
      "phayze"
    ],
    "lives": 200,
    "maxLives": 5000,
    "startRound": 1,
    "endRound": 140,
    "maxTowers": 9999,
    "maxParagons": 4,
    "plays": 0,
    "wins": 0,
    "restarts": 0,
    "losses": 0,
    "upvotes": 0,
    "playsUnique": 0,
    "winsUnique": 0,
    "lossesUnique": 0,
    "_powers": [],
    "_bloonModifiers": {
      "speedMultiplier": 1,
      "moabSpeedMultiplier": 1,
      "bossSpeedMultiplier": 0.9,
      "regrowRateMultiplier": 1,
      "healthMultipliers": {
        "bloons": 1,
        "moabs": 1,
        "boss": 0.9
      },
      "allCamo": false,
      "allRegen": false
    },
    "_towers": [
      {
        "tower": "PatFusty",
        "max": 99,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": true
      },
      {
        "tower": "AdmiralBrickell",
        "max": 1,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": true
      },
      {
        "tower": "Adora",
        "max": 1,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": true
      },
      {
        "tower": "Etienne",
        "max": 1,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": true
      },
      {
        "tower": "ObynGreenfoot",
        "max": 1,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": true
      },
      {
        "tower": "Benjamin",
        "max": 1,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": true
      },
      {
        "tower": "Alchemist",
        "max": -1,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "ChosenPrimaryHero",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": true
      },
      {
        "tower": "BananaFarm",
        "max": -1,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "Quincy",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": true
      },
      {
        "tower": "BombShooter",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "Gwendolin",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": true
      },
      {
        "tower": "BoomerangMonkey",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "StrikerJones",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": true
      },
      {
        "tower": "DartMonkey",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "Druid",
        "max": -1,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "CaptainChurchill",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": true
      },
      {
        "tower": "GlueGunner",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "HeliPilot",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "Ezili",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": true
      },
      {
        "tower": "IceMonkey",
        "max": 2,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "MonkeyAce",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "MonkeyBuccaneer",
        "max": -1,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "MonkeySub",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "MonkeyVillage",
        "max": -1,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "Sauda",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": true
      },
      {
        "tower": "NinjaMonkey",
        "max": -1,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "Psi",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": true
      },
      {
        "tower": "SniperMonkey",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "Geraldo",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": true
      },
      {
        "tower": "SpikeFactory",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "Corvus",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": true
      },
      {
        "tower": "SuperMonkey",
        "max": -1,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "Rosalia",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": true
      },
      {
        "tower": "TackShooter",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "WizardMonkey",
        "max": -1,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "MortarMonkey",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "EngineerMonkey",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "DartlingGunner",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "BeastHandler",
        "max": 0,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      },
      {
        "tower": "Mermonkey",
        "max": -1,
        "path1NumBlockedTiers": 0,
        "path2NumBlockedTiers": 0,
        "path3NumBlockedTiers": 0,
        "isHero": false
      }
    ]
  },
  "model": {
    "name": "_btd6challengedocument",
    "parameters": {
      "name": {
        "description": "Challenge Name",
        "type": "string"
      },
      "createdAt": {
        "description": "Challenge creation time in unix epoch milliseconds",
        "type": "number"
      },
      "id": {
        "description": "Unique Challenge ID",
        "type": "string"
      },
      "creator": {
        "description": "URL to the creators profile",
        "type": "string"
      },
      "gameVersion": {
        "description": "Version of the game this challenge was created in",
        "type": "string"
      },
      "map": {
        "description": "Map Name",
        "type": "string"
      },
      "mapURL": {
        "description": "URL to the map icon",
        "type": "assetURL"
      },
      "mode": {
        "description": "Game Mode",
        "type": "string"
      },
      "difficulty": {
        "description": "Challenge Difficulty",
        "type": "string"
      },
      "disableDoubleCash": {
        "description": "true when Double Cash Mode is disabled",
        "type": "string"
      },
      "disableInstas": {
        "description": "true when Instas are disabled",
        "type": "string"
      },
      "disableMK": {
        "description": "true when Monkey Knowledge is disabled",
        "type": "string"
      },
      "disablePowers": {
        "description": "true when Powers are disabled",
        "type": "string"
      },
      "disableSelling": {
        "description": "true when Selling is disabled",
        "type": "string"
      },
      "startingCash": {
        "description": "Starting cash value",
        "type": "number"
      },
      "lives": {
        "description": "Starting lives",
        "type": "number"
      },
      "maxLives": {
        "description": "Maximum allowed lives",
        "type": "number"
      },
      "maxTowers": {
        "description": "Maximum towers allowed",
        "type": "number"
      },
      "maxParagons": {
        "description": "Maximum paragons allowed",
        "type": "number"
      },
      "startRound": {
        "description": "Starting round",
        "type": "number"
      },
      "endRound": {
        "description": "End Round",
        "type": "number"
      },
      "plays": {
        "description": "Total number of attempts",
        "type": "number"
      },
      "wins": {
        "description": "Total number of wins",
        "type": "number"
      },
      "losses": {
        "description": "Total number of losses",
        "type": "number"
      },
      "upvotes": {
        "description": "Total number of upvotes",
        "type": "number"
      },
      "playsUnique": {
        "description": "Total number of unique attempts",
        "type": "number"
      },
      "restarts": {
        "description": "Total number of restarts",
        "type": "number"
      },
      "winsUnique": {
        "description": "Total number of unique player wins",
        "type": "number"
      },
      "lossesUnique": {
        "description": "Total number of unique player losses",
        "type": "number"
      },
      "abilityCooldownReductionMultiplier": {
        "description": "Ability Cooldown Multiplier",
        "type": "number"
      },
      "leastCashUsed": {
        "description": "Least Cash Used Setting",
        "type": "number"
      },
      "leastTiersUsed": {
        "description": "Least Tier Used",
        "type": "number"
      },
      "noContinues": {
        "description": "Are continues enabled",
        "type": "number"
      },
      "seed": {
        "description": "The RNG seed",
        "type": "number"
      },
      "removeableCostMultiplier": {
        "description": "Blocker removal cost multiplier",
        "type": "number"
      },
      "roundSets": {
        "description": "Bloon Round Information",
        "type": "string[]"
      },
      "_powers": {
        "description": "[!] Power restrictions",
        "type": "raw"
      },
      "_bloonModifiers": {
        "description": "[!] Bloon Modifiers",
        "type": "raw"
      },
      "_towers": {
        "description": "[!] Tower restrictions",
        "type": "raw"
      }
    }
  },
  "next": null,
  "prev": null
}