UNPKG

typescript-assistant

Version:

Combines and integrates professional Typescript tools into your project

10 lines (9 loc) 500 B
export declare type EventType = 'compile-started' | 'compile-compiled' | 'compile-errored' | 'lint-linted' | 'lint-errored' | 'format-verified' | 'format-errored' | 'source-files-changed'; export declare type Callback = () => void; export interface Bus { signal(eventType: EventType): void; register(type: EventType, callback: Callback): void; registerAll(types: EventType[], callback: Callback): void; unregister(callback: Callback): void; } export declare let createBus: () => Bus;