mirror of
https://github.com/lune-org/lune.git
synced 2025-04-10 21:40:54 +01:00
chore(types): add kill function typedef for ChildProcess
This commit is contained in:
parent
e143a508a1
commit
e07d37eec6
1 changed files with 2 additions and 0 deletions
|
@ -110,12 +110,14 @@ end
|
||||||
* `stdin` - A writer to write to the child process' stdin - see `ChildProcessWriter` for more info
|
* `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
|
* `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
|
* `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
|
* `status` - A function that yields and returns the exit status of the child process
|
||||||
]=]
|
]=]
|
||||||
export type ChildProcess = {
|
export type ChildProcess = {
|
||||||
stdin: typeof(ChildProcessWriter),
|
stdin: typeof(ChildProcessWriter),
|
||||||
stdout: typeof(ChildProcessReader),
|
stdout: typeof(ChildProcessReader),
|
||||||
stderr: typeof(ChildProcessReader),
|
stderr: typeof(ChildProcessReader),
|
||||||
|
kill: () -> ();
|
||||||
status: () -> { ok: boolean, code: number }
|
status: () -> { ok: boolean, code: number }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue