File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -259,24 +259,30 @@ export type Options<EncodingType = string> = {
259
259
/**
260
260
Write some input to the `stdin` of your binary.
261
261
262
- Tip: If the input is a file, use the `inputFile` option instead.
262
+ If the input is a file, use the `inputFile` option instead.
263
263
*/
264
264
readonly input ?: string | Buffer | ReadableStream ;
265
265
266
266
/**
267
267
Use a file as input to the the `stdin` of your binary.
268
+
269
+ If the input is not a file, use the `input` option instead.
268
270
*/
269
271
readonly inputFile ?: string ;
270
272
} & CommonOptions < EncodingType > ;
271
273
272
274
export type SyncOptions < EncodingType = string > = {
273
275
/**
274
276
Write some input to the `stdin` of your binary.
277
+
278
+ If the input is a file, use the `inputFile` option instead.
275
279
*/
276
280
readonly input ?: string | Buffer ;
277
281
278
282
/**
279
283
Use a file as input to the the `stdin` of your binary.
284
+
285
+ If the input is not a file, use the `input` option instead.
280
286
*/
281
287
readonly inputFile ?: string ;
282
288
} & CommonOptions < EncodingType > ;
Original file line number Diff line number Diff line change @@ -497,12 +497,16 @@ Type: `string | Buffer | stream.Readable`
497
497
Write some input to the ` stdin ` of your binary.\
498
498
Streams are not allowed when using the synchronous methods.
499
499
500
+ If the input is a file, use the [ ` inputFile ` option] ( #inputfile ) instead.
501
+
500
502
#### inputFile
501
503
502
504
Type: ` string `
503
505
504
506
Use a file as input to the the ` stdin ` of your binary.
505
507
508
+ If the input is not a file, use the [ ` input ` option] ( #input ) instead.
509
+
506
510
#### stdin
507
511
508
512
Type: ` string | number | Stream | undefined ` \
You can’t perform that action at this time.
0 commit comments