type

ReadableSyncSubprocess

type ReadableSyncSubprocess = SyncSubprocess<'pipe', 'pipe'>

Utility type for any process from () with both stdout and stderr set to "pipe"

Referenced types

interface SyncSubprocess<Out extends SpawnOptions.Readable = SpawnOptions.Readable, Err extends SpawnOptions.Readable = SpawnOptions.Readable>

A process created by Bun.spawnSync.

The 2 optional type parameters correspond to the stdout and stderr options. Instead of specifying them, use one of these utility types:

  • ReadableSyncSubprocess (pipe, pipe)
  • NullSyncSubprocess (ignore, ignore)