UNPKG

galeforce-tmp-sea

Version:

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

22 lines 1.01 kB
import { Constructor, Executable } from './executable'; /** * An interface containing method type signatures for any `.ddragon` Action containing a `.assetId()` method. */ export interface DataDragonIdChainable { assetId?: <K extends DataDragonIdChainable & Executable>(this: K, assetId: string | number) => Omit<K, 'assetId'>; } /** * A mixin for the `.assetId()` method. * @template TBase The type of the object inside. Inferred from the `Base` parameter. * @param Base The target class. */ export declare function TakesDataDragonId<TBase extends Constructor>(Base: TBase): { new (...args: any[]): { /** * 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<K extends DataDragonIdChainable & Executable>(this: K, assetId: string | number): Omit<K, "assetId">; }; } & TBase; //# sourceMappingURL=data-dragon-id.d.ts.map