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