galeforce-tmp-sea
Version:
A customizable, promise-based, and command-oriented TypeScript library for the Riot Games API.
22 lines • 983 B
TypeScript
import { Constructor, Executable } from './executable';
/**
* An interface containing method type signatures for any Action containing a `.championId()` method.
*/
export interface ChampionIdChainable {
championId?: <K extends ChampionIdChainable & Executable>(this: K, championId: number) => Omit<K, 'championId'>;
}
/**
* A mixin for the `.championId()` method.
* @template TBase The type of the object inside. Inferred from the `Base` parameter.
* @param Base The target class.
*/
export declare function TakesChampionId<TBase extends Constructor>(Base: TBase): {
new (...args: any[]): {
/**
* Modifies the **championId** associated with the Action object it is called from.
* @param championId The champion ID to update the calling Action object with.
*/
championId<K extends ChampionIdChainable & Executable>(this: K, championId: number): Omit<K, "championId">;
};
} & TBase;
//# sourceMappingURL=champion-id.d.ts.map