Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit 612204a

Browse files
fsoikinalfonsogarciacaro
authored andcommittedJul 15, 2017
Add 'cwd' and 'timeout' to ChildProcess.ExecOptions.
1 parent 8364848 commit 612204a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎Node/ChildProcess.fs

+9-1
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,16 @@ type [<AllowNullLiteral>] ChildProcessStatic =
2626
[<Emit("new $0()")>] abstract Create: unit -> ChildProcess
2727

2828
type ExecOptions = {
29-
encoding : string option;
29+
/// Default: 'utf8'
30+
encoding : string option
31+
32+
/// Current working directory of the child process
33+
cwd: string option
34+
35+
/// Timeout, in milliseconds. Default is zero (no timeout).
36+
timeout: int option
3037
}
38+
with static member Default = { encoding = None; cwd = None; timeout = None; maxBuffer = None }
3139

3240
type IExports =
3341
abstract ChildProcess: ChildProcessStatic with get, set

0 commit comments

Comments
 (0)
This repository has been archived.