UNPKG

galeforce-tmp-sea

Version:

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

22 lines 1.05 kB
import { Constructor, Executable } from './executable'; /** * An interface containing method type signatures for any Action containing a `.tournamentCode()` method. */ export interface TournamentCodeChainable { tournamentCode?: <K extends TournamentCodeChainable & Executable>(this: K, tournamentCode: string) => Omit<K, 'tournamentCode'>; } /** * 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 TakesTournamentCode<TBase extends Constructor>(Base: TBase): { new (...args: any[]): { /** * Modifies the **tournamentCode** associated with the Action object it is called from. * @param tournamentCode The tournament code to update the calling Action object with. */ tournamentCode<K extends TournamentCodeChainable & Executable>(this: K, tournamentCode: string): Omit<K, "tournamentCode">; }; } & TBase; //# sourceMappingURL=tournament-code.d.ts.map