UNPKG

631 BTypeScriptView Raw
1/// <reference types="node" />
2
3import { EventEmitter } from "events";
4
5declare class TscWatchClient extends EventEmitter {
6 start(...args: any[]): void;
7 kill(): void;
8
9 // tslint:disable:unified-signatures
10 /**
11 * Emitted upon first successful compilation
12 */
13 on(event: "first_success", cb: () => any): this;
14 /**
15 * Emitted upon first successful compilation
16 */
17 on(event: "success", cb: () => any): this;
18 /**
19 * Emitted upon every failing compilation
20 */
21 on(event: "compile_errors", cb: () => any): this;
22 // tslint:enable:unified-signatures
23}
24
25export = TscWatchClient;