@@ -93,7 +93,6 @@ external execOptions:
93
93
(
94
94
~cwd : string =?,
95
95
~env : Js . Dict . t (string )=?,
96
- ~encoding : string =?,
97
96
~shell : string =?,
98
97
~timeout : int =?,
99
98
~maxBuffer : int =?,
@@ -106,12 +105,12 @@ external execOptions:
106
105
execOptions ;
107
106
108
107
[@ bs . module "child_process" ] [@ bs . val ]
109
- external exec : (string , (option (Js . Exn . t ), string , string ) => unit ) => t =
108
+ external exec : (string , (Js . nullable (Js . Exn . t ), Buffer . t , Buffer . t ) => unit ) => t =
110
109
"exec" ;
111
110
112
111
[@ bs . module "child_process" ] [@ bs . val ]
113
112
external execWith :
114
- (string , execOptions , (option (Js . Exn . t ), string , string ) => unit ) => t =
113
+ (string , execOptions , (Js . nullable (Js . Exn . t ), Buffer . t , Buffer . t ) => unit ) => t =
115
114
"exec" ;
116
115
117
116
type execFileOptions ;
@@ -121,7 +120,6 @@ external execFileOption:
121
120
(
122
121
~cwd : string =?,
123
122
~env : Js . Dict . t (string )=?,
124
- ~encoding : string =?,
125
123
~timeout : int =?,
126
124
~maxBuffer : int =?,
127
125
~killSignal : string =?,
@@ -135,7 +133,7 @@ external execFileOption:
135
133
136
134
[@ bs . module "child_process" ] [@ bs . val ]
137
135
external execFile :
138
- (string , array (string ), (option (Js . Exn . t ), string , string ) => unit ) => t =
136
+ (string , array (string ), (Js . nullable (Js . Exn . t ), Buffer . t , Buffer . t ) => unit ) => t =
139
137
"execFile" ;
140
138
141
139
[@ bs . module "child_process" ] [@ bs . val ]
@@ -144,7 +142,7 @@ external execFileWith:
144
142
string ,
145
143
array (string ),
146
144
execFileOptions ,
147
- (option (Js . Exn . t ), string , string ) => unit
145
+ (Js . nullable (Js . Exn . t ), Buffer . t , Buffer . t ) => unit
148
146
) =>
149
147
t =
150
148
"execFile" ;
@@ -202,11 +200,11 @@ external spawnWith: (string, array(string), spawnOptions) => t = "spawn";
202
200
type spawnSyncResult (' a ) = {
203
201
pid: int,
204
202
output: array('a),
205
- stdout: string ,
206
- stderr: string ,
203
+ stdout: Buffer . t ,
204
+ stderr: Buffer . t ,
207
205
status: int,
208
- signal: Js . Nullable . t (string),
209
- error: option (Js . Exn . t),
206
+ signal: Js . nullable (string),
207
+ error: Js . nullable (Js . Exn . t),
210
208
};
211
209
212
210
type spawnSyncOptions ;
@@ -247,7 +245,6 @@ external execSyncOptions:
247
245
~cwd : string =?,
248
246
~env : Js . Dict . t (string )=?,
249
247
~input : Buffer . t =?,
250
- ~encoding : string =?,
251
248
~shell : string =?,
252
249
~timeout : int =?,
253
250
~maxBuffer : int =?,
@@ -260,10 +257,10 @@ external execSyncOptions:
260
257
execSyncOptions ;
261
258
262
259
[@ bs . module "child_process" ] [@ bs . val ]
263
- external execSync : string => string = "execSync" ;
260
+ external execSync : string => Buffer . t = "execSync" ;
264
261
265
262
[@ bs . module "child_process" ] [@ bs . val ]
266
- external execSyncWith : (string , execSyncOptions ) => string = "execSync" ;
263
+ external execSyncWith : (string , execSyncOptions ) => Buffer . t = "execSync" ;
267
264
268
265
type execFileSyncOptions ;
269
266
@@ -273,7 +270,6 @@ external execFileSyncOptions:
273
270
~cwd : string =?,
274
271
~env : Js . Dict . t (string )=?,
275
272
~input : Buffer . t =?,
276
- ~encoding : string =?,
277
273
~shell : string =?,
278
274
~timeout : int =?,
279
275
~maxBuffer : int =?,
@@ -286,9 +282,9 @@ external execFileSyncOptions:
286
282
execFileSyncOptions ;
287
283
288
284
[@ bs . module "child_process" ] [@ bs . val ]
289
- external execFileSync : (string , array (string )) => string = "execFileSync" ;
285
+ external execFileSync : (string , array (string )) => Buffer . t = "execFileSync" ;
290
286
291
287
[@ bs . module "child_process" ] [@ bs . val ]
292
288
external execFileSyncWith :
293
- (string , array (string ), execFileSyncOptions ) => string =
289
+ (string , array (string ), execFileSyncOptions ) => Buffer . t =
294
290
"execFileSync" ;
0 commit comments