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