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