gravitlauncher-remotecontrol-js
Version:
GravitLauncher RemoteControl module nodejs implementation
14 lines (13 loc) • 711 B
TypeScript
export type CommandModule = {
[key: string]: (this: GravitLauncherRemoteControlCore, params?: any, log?: boolean) => any;
};
export declare class GravitLauncherRemoteControlCore {
private readonly rawUrl;
private readonly token;
constructor(rawUrl: string, token: string);
protected request<LogEnabled extends boolean>(command: string, log?: LogEnabled): Promise<import("./core").ExtractedData<LogEnabled>>;
import<T extends CommandModule>(commands: T): this is this & T;
}
export * as commands from './commands';
export * from './core';
export declare function init<T extends CommandModule>(rawUrl: string, token: string, commands: T): GravitLauncherRemoteControlCore & T;