UNPKG

galeforce-tmp-sea

Version:

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

23 lines 855 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TakesTournamentCode = 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 TakesTournamentCode(Base) { return class extends Base { /** * Modifies the **tournamentCode** associated with the Action object it is called from. * @param tournamentCode The tournament code to update the calling Action object with. */ tournamentCode(tournamentCode) { this.payload.tournamentCode = tournamentCode; this.tournamentCode = undefined; return this; } }; } exports.TakesTournamentCode = TakesTournamentCode; //# sourceMappingURL=tournament-code.js.map