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