UNPKG

galeforce-tmp-sea

Version:

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

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