UNPKG

galeforce-tmp-sea

Version:

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

22 lines 965 B
import { Constructor, Executable } from './executable'; /** * An interface containing method type signatures for any `.ddragon` Action containing a `.champion()` method. */ export interface ChampionChainable { champion?: <K extends ChampionChainable & Executable>(this: K, champion: string) => Omit<K, 'champion'>; } /** * A mixin for the `.champion()` method. * @template TBase The type of the object inside. Inferred from the `Base` parameter. * @param Base The target class. */ export declare function TakesChampion<TBase extends Constructor>(Base: TBase): { new (...args: any[]): { /** * Modifies the **champion** associated with the Action object it is called from. * @param champion The champion name to update the calling Action object with. */ champion<K extends ChampionChainable & Executable>(this: K, champion: string): Omit<K, "champion">; }; } & TBase; //# sourceMappingURL=champion.d.ts.map