@@ -11,7 +11,7 @@ module Events = {
1111 @send
1212 external onDisconnect : (t , @as ("disconnect" ) _ , @uncurry unit => unit ) => t = "on"
1313 @send
14- external onError : (t , @as ("error" ) _ , @uncurry (Js . Exn .t => unit )) => t = "on"
14+ external onError : (t , @as ("error" ) _ , @uncurry (JsExn .t => unit )) => t = "on"
1515 @send
1616 external onExit : (t , @as ("exit" ) _ , @uncurry int => unit ) => t = "on"
1717 @send
@@ -22,7 +22,7 @@ module Events = {
2222 @send
2323 external offDisconnect : (t , @as ("disconnect" ) _ , @uncurry unit => unit ) => t = "off"
2424 @send
25- external offError : (t , @as ("error" ) _ , @uncurry (Js . Exn .t => unit )) => t = "off"
25+ external offError : (t , @as ("error" ) _ , @uncurry (JsExn .t => unit )) => t = "off"
2626 @send
2727 external offExit : (t , @as ("exit" ) _ , @uncurry int => unit ) => t = "off"
2828 @send
@@ -33,7 +33,7 @@ module Events = {
3333 @send
3434 external onDisconnectOnce : (t , @as ("disconnect" ) _ , @uncurry unit => unit ) => t = "once"
3535 @send
36- external onErrorOnce : (t , @as ("error" ) _ , @uncurry (Js . Exn .t => unit )) => t = "once"
36+ external onErrorOnce : (t , @as ("error" ) _ , @uncurry (JsExn .t => unit )) => t = "once"
3737 @send
3838 external onExitOnce : (t , @as ("exit" ) _ , @uncurry int => unit ) => t = "once"
3939 @send
@@ -44,7 +44,7 @@ module Events = {
4444 @send
4545 external emitDisconnect : (t , @as ("disconnect" ) _ ) => bool = "emit"
4646 @send
47- external emitError : (t , @as ("error" ) _ , Js . Exn .t ) => bool = "emit"
47+ external emitError : (t , @as ("error" ) _ , JsExn .t ) => bool = "emit"
4848 @send external emitExit : (t , @as ("exit" ) _ , int ) => bool = "emit"
4949 @send external emitClose : (t , @as ("close" ) _ , int ) => bool = "emit"
5050
@@ -68,7 +68,7 @@ external stdout: t => option<Stream.Readable.t<Buffer.t>> = "stdout"
6868
6969type execOptions = {
7070 cwd ?: string ,
71- env ?: Js . Dict . t <string >,
71+ env ?: dict <string >,
7272 shell ?: string ,
7373 timeout ?: int ,
7474 maxBuffer ?: int ,
@@ -80,15 +80,15 @@ type execOptions = {
8080}
8181
8282@module ("node:child_process" ) @val
83- external exec : (string , (Js . nullable < Js . Exn .t >, Buffer .t , Buffer .t ) => unit ) => t = "exec"
83+ external exec : (string , (Nullable . t < JsExn .t >, Buffer .t , Buffer .t ) => unit ) => t = "exec"
8484
8585@module ("node:child_process" ) @val
86- external execWith : (string , execOptions , (Js . nullable < Js . Exn .t >, Buffer .t , Buffer .t ) => unit ) => t =
86+ external execWith : (string , execOptions , (Nullable . t < JsExn .t >, Buffer .t , Buffer .t ) => unit ) => t =
8787 "exec"
8888
8989type execFileOptions = {
9090 cwd ?: string ,
91- env ?: Js . Dict . t <string >,
91+ env ?: dict <string >,
9292 timeout ?: int ,
9393 maxBuffer ?: int ,
9494 killSignal ?: string ,
@@ -99,24 +99,21 @@ type execFileOptions = {
9999}
100100
101101@module ("node:child_process" ) @val
102- external execFile : (
103- string ,
104- array <string >,
105- (Js .nullable <Js .Exn .t >, Buffer .t , Buffer .t ) => unit ,
106- ) => t = "execFile"
102+ external execFile : (string , array <string >, (Nullable .t <JsExn .t >, Buffer .t , Buffer .t ) => unit ) => t =
103+ "execFile"
107104
108105@module ("node:child_process" ) @val
109106external execFileWith : (
110107 string ,
111108 array <string >,
112109 execFileOptions ,
113- (Js . nullable < Js . Exn .t >, Buffer .t , Buffer .t ) => unit ,
110+ (Nullable . t < JsExn .t >, Buffer .t , Buffer .t ) => unit ,
114111) => t = "execFile"
115112
116113type forkOptions = {
117114 cwd ?: string ,
118115 detached ?: bool ,
119- env ?: Js . Dict . t <string >,
116+ env ?: dict <string >,
120117 execPath ?: string ,
121118 execArgv ?: array <string >,
122119 silent ?: bool ,
@@ -134,7 +131,7 @@ external forkWith: (string, array<string>, forkOptions) => t = "fork"
134131
135132type spawnOptions = {
136133 cwd ?: string ,
137- env ?: Js . Dict . t <string >,
134+ env ?: dict <string >,
138135 argv0 ?: string ,
139136 stdio ?: string ,
140137 detached ?: bool ,
@@ -157,13 +154,13 @@ type spawnSyncResult<'a> = {
157154 stdout : Buffer .t ,
158155 stderr : Buffer .t ,
159156 status : int ,
160- signal : Js . nullable <string >,
161- error : Js . nullable < Js . Exn .t >,
157+ signal : Nullable . t <string >,
158+ error : Nullable . t < JsExn .t >,
162159}
163160
164161type spawnSyncOptions = {
165162 cwd ?: string ,
166- env ?: Js . Dict . t <string >,
163+ env ?: dict <string >,
167164 input ?: Buffer .t ,
168165 argv0 ?: string ,
169166 stdio ?: string ,
@@ -184,7 +181,7 @@ external spawnSyncWith: (string, array<string>, spawnSyncOptions) => spawnSyncRe
184181
185182type execSyncOptions = {
186183 cwd ?: string ,
187- env ?: Js . Dict . t <string >,
184+ env ?: dict <string >,
188185 input ?: Buffer .t ,
189186 shell ?: string ,
190187 timeout ?: int ,
@@ -204,7 +201,7 @@ external execSyncWith: (string, execSyncOptions) => Buffer.t = "execSync"
204201
205202type execFileSyncOptions = {
206203 cwd ?: string ,
207- env ?: Js . Dict . t <string >,
204+ env ?: dict <string >,
208205 input ?: Buffer .t ,
209206 shell ?: string ,
210207 timeout ?: int ,
0 commit comments