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