UNPKG

nx

Version:

The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.

13 lines (12 loc) 405 B
import { Socket } from 'net'; export interface Message extends Record<string, any> { type: string; data?: any; } export declare class DaemonSocketMessenger { private socket; constructor(socket: Socket); sendMessage(messageToDaemon: Message): Promise<void>; listen(onData: (message: string) => void, onClose?: () => void, onError?: (err: Error) => void): this; close(): void; }