UNPKG

galeforce-tmp-sea

Version:

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

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