UNPKG

galeforce-tmp-sea

Version:

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

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