UNPKG

galeforce-tmp-sea

Version:

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

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