From e07d37eec6be57ef38b2ae9cc8e6624a8afcaaf8 Mon Sep 17 00:00:00 2001
From: Erica Marigold <hi@devcomp.xyz>
Date: Tue, 25 Jun 2024 11:41:10 +0530
Subject: [PATCH] chore(types): add kill function typedef for ChildProcess

---
 types/process.luau | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/types/process.luau b/types/process.luau
index 7e9f50b..beb5a8e 100644
--- a/types/process.luau
+++ b/types/process.luau
@@ -110,12 +110,14 @@ end
 	* `stdin` - A writer to write to the child process' stdin - see `ChildProcessWriter` for more info
 	* `stdout` - A reader to read from the child process' stdout - see `ChildProcessReader` for more info
 	* `stderr` - A reader to read from the child process' stderr - see `ChildProcessReader` for more info
+	* `kill` - A function that kills the child process
 	* `status` - A function that yields and returns the exit status of the child process
 ]=]
 export type ChildProcess = {
 	stdin: typeof(ChildProcessWriter),
 	stdout: typeof(ChildProcessReader),
 	stderr: typeof(ChildProcessReader),
+	kill: () -> ();
 	status: () -> { ok: boolean, code: number }
 }