Skip to content

Commit 9dbf3ca

Browse files
fix: vars
1 parent 897b846 commit 9dbf3ca

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/commands/lightning/dev/helpers/processUtils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,18 @@
1414
* limitations under the License.
1515
*/
1616

17+
import { type ChildProcess } from 'node:child_process';
1718
import treeKill from 'tree-kill';
1819

1920
/**
2021
* Clean up a server process and all its child processes. Uses tree-kill so
2122
* descendant node processes (e.g. LWR workers) are terminated.
2223
*/
23-
export function killServerProcess(serverProcess: { pid?: number } | null | undefined): void {
24+
export function killServerProcess(serverProcess: ChildProcess | null | undefined): void {
2425
if (!serverProcess?.pid) return;
2526
const pid = serverProcess.pid;
2627
try {
28+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
2729
treeKill(pid, 'SIGKILL');
2830
} catch (error) {
2931
const err = error as NodeJS.ErrnoException;

0 commit comments

Comments
 (0)