galeforce-tmp-sea
Version:
A customizable, promise-based, and command-oriented TypeScript library for the Riot Games API.
26 lines • 1.18 kB
TypeScript
import { Constructor, Executable } from './executable';
/**
* An interface containing method type signatures for any Action containing a `.puuid()` method.
*/
export interface PUUIDChainable {
puuid?: <K extends PUUIDChainable & Executable>(this: K, puuid: string) => Omit<K, 'puuid'>;
}
/**
* A mixin for the `.puuid()` method.
* @template TBase The type of the object inside. Inferred from the `Base` parameter.
* @param Base The target class.
*/
export declare function TakesPUUID<TBase extends Constructor>(Base: TBase): {
new (...args: any[]): {
/**
* Modifies the **puuid** associated with the Action object it is called from.
* Note that associated runtime type checks are performed to ensure that
* the provided PUUID conforms to Riot specifications.
* @param puuid The PUUID to update the calling Action object with.
* @throws Will throw an error if an invalid region is provided or the provided
* `region` fails the runtime type check.
*/
puuid<K extends PUUIDChainable & Executable>(this: K, puuid: string): Omit<K, "puuid">;
};
} & TBase;
//# sourceMappingURL=puuid.d.ts.map