I think I discovered some missing type definitions for stdio options to child_process calls to execFileSync, execSync and spawnSync.
Actually this is also seems to be missing in node.js documentation (see nodejs/node#9636).
The options.stdio argument to execFileSync, execSync and spawnSync can actually be a string and an array.
In lib/node.js it also seems that execFileSync is using the incorrect options type... It should use child_process$execSyncOpts not child_process$execFileOpts.
|
argsOrOptions?: Array<string> | child_process$execFileOpts, |
I think I discovered some missing type definitions for
stdiooptions tochild_processcalls toexecFileSync,execSyncandspawnSync.Actually this is also seems to be missing in node.js documentation (see nodejs/node#9636).
The
options.stdioargument toexecFileSync,execSyncandspawnSynccan actually be a string and an array.In
lib/node.jsit also seems thatexecFileSyncis using the incorrect options type... It should usechild_process$execSyncOptsnotchild_process$execFileOpts.flow/lib/node.js
Line 241 in c6c6b3c