galeforce-tmp-sea
Version:
A customizable, promise-based, and command-oriented TypeScript library for the Riot Games API.
22 lines • 902 B
TypeScript
import { Constructor, Executable } from './executable';
/**
* An interface containing method type signatures for any Action containing a `.card()` method.
*/
export interface CardChainable {
card?: <K extends CardChainable & Executable>(this: K, card: string) => Omit<K, 'card'>;
}
/**
* A mixin for the `.card()` method.
* @template TBase The type of the object inside. Defaults to `typeof Action`.
* @param Base The target class.
*/
export declare function TakesCard<TBase extends Constructor>(Base: TBase): {
new (...args: any[]): {
/**
* Modifies the Legends of Runeterra **card** associated with the Action object it is called from.
* @param card The card ID to update the calling Action object with.
*/
card<K extends CardChainable & Executable>(this: K, card: string): Omit<K, "card">;
};
} & TBase;
//# sourceMappingURL=card.d.ts.map