Skip to content

Commit 0ab4624

Browse files
committed
add comment
1 parent 22aa8bc commit 0ab4624

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ export class NewlineTransformer extends Transform {
9393
* An interactive Python shell exchanging data through stdio
9494
* @param {string} script The python script to execute
9595
* @param {object} [options] The launch options (also passed to child_process.spawn)
96+
* @param [stdoutSplitter] Optional. Splits stdout into chunks, defaulting to splitting into newline-seperated lines
97+
* @param [stderrSplitter] Optional. splits stderr into chunks, defaulting to splitting into newline-seperated lines
9698
* @constructor
9799
*/
98100
export class PythonShell extends EventEmitter {
@@ -123,6 +125,8 @@ export class PythonShell extends EventEmitter {
123125
* spawns a python process
124126
* @param scriptPath path to script. Relative to current directory or options.scriptFolder if specified
125127
* @param options
128+
* @param stdoutSplitter Optional. Splits stdout into chunks, defaulting to splitting into newline-seperated lines
129+
* @param stderrSplitter Optional. splits stderr into chunks, defaulting to splitting into newline-seperated lines
126130
*/
127131
constructor(scriptPath: string, options?: Options, stdoutSplitter: Transform = null, stderrSplitter: Transform = null) {
128132
super();

0 commit comments

Comments
 (0)