UNPKG

galeforce-tmp-sea

Version:

A customizable, promise-based, and command-oriented TypeScript library for the Riot Games API.

23 lines 807 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TakesDataDragonId = void 0; /** * A mixin for the `.assetId()` method. * @template TBase The type of the object inside. Inferred from the `Base` parameter. * @param Base The target class. */ function TakesDataDragonId(Base) { return class extends Base { /** * Modifies the Data Dragon **assetId** associated with the Action object it is called from. * @param assetId The Data Dragon asset ID to update the calling Action object with. */ assetId(assetId) { this.payload.assetId = assetId; this.assetId = undefined; return this; } }; } exports.TakesDataDragonId = TakesDataDragonId; //# sourceMappingURL=data-dragon-id.js.map