UNPKG

nx

Version:

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

24 lines (23 loc) 1.41 kB
import type { Server, Socket } from 'net'; import type { Watcher } from '../../native'; export declare const SERVER_INACTIVITY_TIMEOUT_MS: 10800000; export declare function storeWatcherInstance(instance: Watcher): void; export declare function getWatcherInstance(): Watcher; export declare function storeOutputWatcherInstance(instance: Watcher): void; export declare function getOutputWatcherInstance(): Watcher; interface HandleServerProcessTerminationParams { server: Server; reason: string; sockets: Iterable<Socket>; } export declare function handleServerProcessTermination({ server, reason, sockets, }: HandleServerProcessTerminationParams): Promise<void>; export declare function handleServerProcessTerminationWithRestart({ server, reason, sockets, }: HandleServerProcessTerminationParams): Promise<void>; export declare function resetInactivityTimeout(cb: () => void): void; export declare function respondToClient(socket: Socket, response: Buffer, description: string): Promise<unknown>; /** * Send an error to the client without terminating the daemon. Use this when the * daemon should keep running for other clients after refusing a request. */ export declare function respondWithError(socket: Socket, description: string, error: Error): Promise<void>; export declare function respondWithErrorAndExit(socket: Socket, description: string, error: Error): Promise<void>; export {};