@jawis/jates
Version:
44 lines (43 loc) • 1.29 kB
TypeScript
import { WsPoolProv } from "@jawis/jab-express";
import { ServerMessage, OnRogue, RogueData, ClientMessage, JatesTestReport, ClientTestReport } from "@jawis/jatec";
export type ClientComProv = {
onTestStarts: (testId: string) => void;
onTestReport: (data: JatesTestReport) => void;
onTestRunnerStarts: () => void;
onTestRunnerStops: () => void;
onTestSelectionReady: (tests: string[][]) => void;
notifyIsRunning: (running: boolean) => void;
sendTestReport: (data: ClientTestReport) => void;
onRogueTest: OnRogue;
};
type Deps = {
wsPool: WsPoolProv<ServerMessage, ClientMessage>;
};
/**
*
*/
export declare class ClientComController implements ClientComProv {
private deps;
constructor(deps: Deps);
onTestRunnerStarts: () => void;
onTestRunnerStops: () => void;
notifyIsRunning: (running: boolean) => void;
onTestStarts: (testId: string) => void;
/**
*
*/
onTestReport: (report: JatesTestReport) => void;
/**
* sends TestReport to client. It's only a subset of the information.
*/
sendTestReport: (report: ClientTestReport) => void;
/**
*
*/
onTestSelectionReady: (tests: string[][]) => void;
/**
*
*/
onRogueTest: (data: RogueData) => void;
}
export {};