Skip to content

Commit

Permalink
options is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
gutenye committed Nov 24, 2024
1 parent 19c50da commit ac2c6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/child_process/childProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { spawn } from 'node:child_process'

export * from 'node:child_process'

export function spawnPlus(command: SpawnArgs[0], options: SpawnArgs[2]) {
export function spawnPlus(command: SpawnArgs[0], options?: SpawnArgs[2]) {
let stderr = ''
const newOptions = { shell: true, ...options }
const child = spawn(command, newOptions)
Expand Down

0 comments on commit ac2c6b1

Please sign in to comment.