galeforce-tmp-sea
Version:
A customizable, promise-based, and command-oriented TypeScript library for the Riot Games API.
25 lines • 1.2 kB
TypeScript
import { Constructor, Executable } from './executable';
/**
* An interface containing method type signatures for any Action containing a `.summonerId()` method.
*/
export interface SummonerIdChainable {
summonerId?: <K extends SummonerIdChainable & Executable>(this: K, summonerId: string) => Omit<K, 'summonerId'>;
}
/**
* A mixin for the `.summonerId()` method.
* @template TBase The type of the object inside. Inferred from the `Base` parameter.
* @param Base The target class.
*/
export declare function TakesSummonerId<TBase extends Constructor>(Base: TBase): {
new (...args: any[]): {
/**
* Modifies the **summonerId** associated with the Action object it is called from.
* Note that associated runtime type checks are performed to ensure that
* the summoner ID conforms to Riot specifications.
* @param summonerId The summoner ID to update the calling Action object with.
* @throws Will throw an error if an invalid `summonerId` is provided.
*/
summonerId<K extends SummonerIdChainable & Executable>(this: K, summonerId: string): Omit<K, "summonerId">;
};
} & TBase;
//# sourceMappingURL=summoner-id.d.ts.map