UNPKG

galeforce-tmp-sea

Version:

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

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