node and browser bindings for gleam

feat(child_process): make `kill` a function instead of a "method"

Changed files
+7 -1
src
+3
src/child_process_ffi.mjs
··· 2 2 3 3 export const spawn = (cmd, args) => 4 4 child_process.spawn(cmd, args.toArray()) 5 + 6 + export const kill = (childProcess) => 7 + childProcess.kill()
+4 -1
src/plinth/node/child_process.gleam
··· 1 1 pub type ChildProcess { 2 - ChildProcess(kill: fn() -> Nil, stdin: Stdin) 2 + ChildProcess(stdin: Stdin) 3 3 } 4 4 5 5 pub type Stdin { ··· 11 11 12 12 @external(javascript, "../../child_process_ffi.mjs", "spawn") 13 13 pub fn spawn(command: String, arguments: List(String)) -> ChildProcess 14 + 15 + @external(javascript, "../../child_process_ffi.mjs", "kill") 16 + pub fn kill(child_process: ChildProcess) -> Nil