UNPKG

galeforce-tmp-sea

Version:

A customizable, promise-based, and command-oriented TypeScript library for the Riot Games API.

23 lines 777 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TakesLeagueId = void 0; /** * A mixin for the `.tournamentCode()` method. * @template TBase The type of the object inside. Inferred from the `Base` parameter. * @param Base The target class. */ function TakesLeagueId(Base) { return class extends Base { /** * Modifies the **leagueId** associated with the Action object it is called from. * @param leagueId The league ID to update the calling Action object with. */ leagueId(leagueId) { this.payload.leagueId = leagueId; this.leagueId = undefined; return this; } }; } exports.TakesLeagueId = TakesLeagueId; //# sourceMappingURL=league-id.js.map