galeforce-tmp-sea
Version:
A customizable, promise-based, and command-oriented TypeScript library for the Riot Games API.
27 lines • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TakesPUUID = void 0;
/**
* A mixin for the `.puuid()` method.
* @template TBase The type of the object inside. Inferred from the `Base` parameter.
* @param Base The target class.
*/
function TakesPUUID(Base) {
return class extends Base {
/**
* Modifies the **puuid** associated with the Action object it is called from.
* Note that associated runtime type checks are performed to ensure that
* the provided PUUID conforms to Riot specifications.
* @param puuid The PUUID to update the calling Action object with.
* @throws Will throw an error if an invalid region is provided or the provided
* `region` fails the runtime type check.
*/
puuid(puuid) {
this.payload.puuid = puuid;
this.puuid = undefined;
return this;
}
};
}
exports.TakesPUUID = TakesPUUID;
//# sourceMappingURL=puuid.js.map