Skip to content

Commit 80abadf

Browse files
committed
SpawnSyncOptions: reduce supported input types to string
The option only supports `Maybe Buffer` and providing anything else like `Maybe String` will result in compilation error.
1 parent e8e4159 commit 80abadf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Node/ChildProcess.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
-- | defined in this library that doesn't exist in the Node docs.
2222
-- | It exists to allow the end-user to append additional values to the `safeStdio` value
2323
-- | used here. For example,
24-
-- |
24+
-- |
2525
-- | ```
2626
-- | spawn' file args (_ { appendStdio = Just [ fileDescriptor8, pipe, pipe ]})
2727
-- | ```
@@ -242,7 +242,7 @@ spawnSync command args = (UnsafeCP.spawnSync command args) <#> \r ->
242242
}
243243

244244
-- | - `cwd` <string> | <URL> Current working directory of the child process.
245-
-- | - `input` <string> | <Buffer> | <TypedArray> | <DataView> The value which will be passed as stdin to the spawned process. Supplying this value will override stdio[0].
245+
-- | - `input` <Buffer> The value which will be passed as stdin to the spawned process. Supplying this value will override stdio[0].
246246
-- | - `argv0` <string> Explicitly set the value of argv[0] sent to the child process. This will be set to command if not specified.
247247
-- | - `env` <Object> Environment key-value pairs. Default: process.env.
248248
-- | - `uid` <number> Sets the user identity of the process (see setuid(2)).

0 commit comments

Comments
 (0)