UNPKG

galeforce-tmp-sea

Version:

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

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