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