UNPKG

@blizzard-api/sc2

Version:

A series of helpers to interact with the Starcraft II Blizzard API

22 lines (21 loc) 756 B
import { t as starcraftRegion } from "../regions-Dk4G9ABq.js"; //#region src/ladder/index.ts /** * Returns the grandmaster leaderboard for the specified region. * @param regionId The region ID * @returns The grandmaster leaderboard resource. See {@link GrandmasterLeaderboardResponse}. */ function grandmasterLeaderboard(regionId) { return { path: `/sc2/ladder/grandmaster/${starcraftRegion[regionId]}` }; } /** * Returns the season information for the specified region. * @param regionId The region ID * @returns The season resource. See {@link SeasonResponse}. */ function season(regionId) { return { path: `/sc2/ladder/season/${starcraftRegion[regionId]}` }; } //#endregion export { grandmasterLeaderboard, season }; //# sourceMappingURL=index.js.map