@@ -234,30 +234,30 @@ export interface ExecaReturnBase<StdoutStderrType> {
234
234
killed : boolean ;
235
235
}
236
236
237
- export interface ExecaSyncReturnValue < StdOutErrType = string >
238
- extends ExecaReturnBase < StdOutErrType > {
237
+ export interface ExecaSyncReturnValue < StdoutErrorType = string >
238
+ extends ExecaReturnBase < StdoutErrorType > {
239
239
/**
240
240
The exit code of the process that was run.
241
241
*/
242
242
code : number ;
243
243
}
244
244
245
- export interface ExecaReturnValue < StdOutErrType = string >
246
- extends ExecaSyncReturnValue < StdOutErrType > {
245
+ export interface ExecaReturnValue < StdoutErrorType = string >
246
+ extends ExecaSyncReturnValue < StdoutErrorType > {
247
247
/**
248
248
The output of the process with `stdout` and `stderr` interleaved.
249
249
*/
250
- all : StdOutErrType ;
250
+ all : StdoutErrorType ;
251
251
252
252
/**
253
253
Whether the process was canceled.
254
254
*/
255
255
isCanceled : boolean ;
256
256
}
257
257
258
- export interface ExecaSyncError < StdOutErrType = string >
258
+ export interface ExecaSyncError < StdoutErrorType = string >
259
259
extends Error ,
260
- ExecaReturnBase < StdOutErrType > {
260
+ ExecaReturnBase < StdoutErrorType > {
261
261
/**
262
262
The error message.
263
263
*/
@@ -269,27 +269,25 @@ export interface ExecaSyncError<StdOutErrType = string>
269
269
code : number | string ;
270
270
}
271
271
272
- export interface ExecaError < StdOutErrType = string >
273
- extends ExecaSyncError < StdOutErrType > {
272
+ export interface ExecaError < StdoutErrorType = string >
273
+ extends ExecaSyncError < StdoutErrorType > {
274
274
/**
275
275
The output of the process with `stdout` and `stderr` interleaved.
276
276
*/
277
- all : StdOutErrType ;
277
+ all : StdoutErrorType ;
278
278
279
279
/**
280
280
Whether the process was canceled.
281
281
*/
282
282
isCanceled : boolean ;
283
283
}
284
284
285
- export interface ExecaChildPromise < StdOutErrType > {
285
+ export interface ExecaChildPromise < StdoutErrorType > {
286
286
catch < ResultType = never > (
287
287
onRejected ?:
288
- | ( (
289
- reason : ExecaError < StdOutErrType >
290
- ) => ResultType | PromiseLike < ResultType > )
288
+ | ( ( reason : ExecaError < StdoutErrorType > ) => ResultType | PromiseLike < ResultType > )
291
289
| null
292
- ) : Promise < ExecaReturnValue < StdOutErrType > | ResultType > ;
290
+ ) : Promise < ExecaReturnValue < StdoutErrorType > | ResultType > ;
293
291
294
292
/**
295
293
Cancel the subprocess.
@@ -299,9 +297,9 @@ export interface ExecaChildPromise<StdOutErrType> {
299
297
cancel ( ) : void ;
300
298
}
301
299
302
- export type ExecaChildProcess < StdOutErrType = string > = ChildProcess &
303
- ExecaChildPromise < StdOutErrType > &
304
- Promise < ExecaReturnValue < StdOutErrType > > ;
300
+ export type ExecaChildProcess < StdoutErrorType = string > = ChildProcess &
301
+ ExecaChildPromise < StdoutErrorType > &
302
+ Promise < ExecaReturnValue < StdoutErrorType > > ;
305
303
306
304
declare const execa : {
307
305
/**
0 commit comments