Skip to content

child_process #2824

@skovhus

Description

@skovhus

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions