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