@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.
23 lines • 739 B
TypeScript
export declare class PortManager {
/**
* Force kill a process using system commands
*/
private static forceKillProcess;
/**
* Check if a port is in use
*/
static isPortInUse(port: number): Promise<boolean>;
/**
* Get process IDs using a specific port
*/
static getProcessesUsingPort(port: number): Promise<string[]>;
/**
* Free a port by killing processes using it with exponential backoff
*/
static freePort(port: number, serviceName: string): Promise<void>;
/**
* Find an available port starting from the given port
*/
static findAvailablePort(startPort: number, maxAttempts?: number): Promise<number>;
}
//# sourceMappingURL=port-manager.d.ts.map