@tryloop/oats
Version:
🌾 OATS - OpenAPI TypeScript Sync. The missing link between your OpenAPI specs and TypeScript applications. Automatically watch, generate, and sync TypeScript clients from your API definitions.
26 lines • 744 B
TypeScript
import { ExecaChildProcess } from 'execa';
export interface ProcessOptions {
cwd?: string;
env?: Record<string, string>;
shell?: boolean;
}
export declare class ProcessManager {
private activeProcesses;
/**
* Start a process with platform-specific handling
*/
startProcess(command: string, args: string[], options?: ProcessOptions): ExecaChildProcess;
/**
* Kill a process gracefully with platform-specific handling
*/
killProcess(child: ExecaChildProcess): Promise<void>;
/**
* Kill all active processes
*/
killAll(): Promise<void>;
/**
* Check if any processes are running
*/
hasActiveProcesses(): boolean;
}
//# sourceMappingURL=process-manager.d.ts.map