galeforce-tmp-sea
Version:
A customizable, promise-based, and command-oriented TypeScript library for the Riot Games API.
23 lines • 799 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TakesChampionId = void 0;
/**
* A mixin for the `.championId()` method.
* @template TBase The type of the object inside. Inferred from the `Base` parameter.
* @param Base The target class.
*/
function TakesChampionId(Base) {
return class extends Base {
/**
* Modifies the **championId** associated with the Action object it is called from.
* @param championId The champion ID to update the calling Action object with.
*/
championId(championId) {
this.payload.championId = championId;
this.championId = undefined;
return this;
}
};
}
exports.TakesChampionId = TakesChampionId;
//# sourceMappingURL=champion-id.js.map