index.d.ts 381 B

1234567891011121314
  1. /**
  2. * Kills process identified by `pid` and all its children
  3. *
  4. * @param pid
  5. * @param signal 'SIGTERM' by default
  6. * @param callback
  7. */
  8. declare function treeKill(pid: number, callback?: (error?: Error) => void): void;
  9. declare function treeKill(pid: number, signal?: string | number, callback?: (error?: Error) => void): void;
  10. declare namespace treeKill {}
  11. export = treeKill;