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