UNPKG

galeforce-tmp-sea

Version:

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

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