UNPKG

galeforce-tmp-sea

Version:

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

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