buncid/dist/utils/kill-child.d.ts

16 lines
379 B
TypeScript
Raw Permalink Normal View History

2025-01-16 08:28:46 +00:00
import { ChildProcess } from "child_process";
2025-01-16 05:22:33 +00:00
/**
* ## Kill Child Process Function
* @param {string | number | (string | number)[]} [port]
* @returns {Promise<boolean>}
*/
2025-02-22 17:02:00 +00:00
export default function killChild(
/**
* Child Process to be killed
*/
childProcess?: ChildProcess,
/**
* Port/ports to be killed
*/
port?: string | number | (string | number)[]): Promise<boolean>;