alm
Version:
The best IDE for TypeScript
18 lines (15 loc) • 647 B
text/typescript
import * as sw from "../../utils/simpleWorker";
import * as types from "../../../common/types";
export const worker = {
/** Start or restart */
init: {} as sw.QRFunction<{workingDir: string} , {}>,
/** Relints if a file changes on disk */
fileSaved: {} as sw.QRFunction<{ filePath: string }, {}>,
}
export const master = {
receiveWorking: {} as sw.QRFunction<types.Working, {}>,
/** Sends out test resuts */
receiveTestResultsDelta: {} as sw.QRFunction<types.TestResultsDelta, {}>,
/** Sends out errors for config / file exceptions */
receiveErrorCacheDelta: {} as sw.QRFunction<types.ErrorCacheDelta, {}>,
}