Utility type for any process from () with both stdout and stderr set to null
or similar
Symbol
NullSyncSubprocess
type NullSyncSubprocess = SyncSubprocess<'ignore' | 'inherit' | null | undefined, 'ignore' | 'inherit' | null | undefined>
Referenced types
interface SyncSubprocess<Out extends SpawnOptions.Readable = SpawnOptions.Readable, Err extends SpawnOptions.Readable = SpawnOptions.Readable>
A process created by Bun.spawnSync.
This type accepts 2 optional type parameters which correspond to the stdout
and stderr
options. Instead of specifying these, you should use one of the following utility types instead:
- ReadableSyncSubprocess (pipe, pipe)
- NullSyncSubprocess (ignore, ignore)
- resourceUsage: ResourceUsage
Get the resource usage information of the process (max RSS, CPU time, etc)