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 Action containing a `.tournamentId()` method. */ export interface TournamentIdChainable { tournamentId?: <K extends TournamentIdChainable & Executable>(this: K, tournamentId: number) => Omit<K, 'tournamentId'>; } /** * A mixin for the `.tournamentId()` method. * @template TBase The type of the object inside. Inferred from the `Base` parameter. * @param Base The target class. */ export declare function TakesTournamentId<TBase extends Constructor>(Base: TBase): { new (...args: any[]): { /** * Modifies the **tournamentId** associated with the Action object it is called from. * @param tournamentId The tournament ID to update the calling Action object with. */ tournamentId<K extends TournamentIdChainable & Executable>(this: K, tournamentId: number): Omit<K, "tournamentId">; }; } & TBase; //# sourceMappingURL=tournament-id.d.ts.map