bun-types-no-globals 1.2.21-canary.20250811T140726 → 1.2.21-canary.20250812T140642

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/bun.d.ts +6 -4
  2. package/package.json +1 -1
package/lib/bun.d.ts CHANGED
@@ -7529,10 +7529,11 @@ declare module "bun" {
7529
7529
  * Internally, this uses [posix_spawn(2)](https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/posix_spawn.2.html)
7530
7530
  */
7531
7531
  function spawnSync<
7532
+ const In extends SpawnOptions.Writable = "ignore",
7532
7533
  const Out extends SpawnOptions.Readable = "pipe",
7533
- const Err extends SpawnOptions.Readable = "inherit",
7534
+ const Err extends SpawnOptions.Readable = "pipe",
7534
7535
  >(
7535
- options: SpawnOptions.OptionsObject<"ignore", Out, Err> & {
7536
+ options: SpawnOptions.OptionsObject<In, Out, Err> & {
7536
7537
  /**
7537
7538
  * The command to run
7538
7539
  *
@@ -7564,8 +7565,9 @@ declare module "bun" {
7564
7565
  * Internally, this uses [posix_spawn(2)](https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/posix_spawn.2.html)
7565
7566
  */
7566
7567
  function spawnSync<
7568
+ const In extends SpawnOptions.Writable = "ignore",
7567
7569
  const Out extends SpawnOptions.Readable = "pipe",
7568
- const Err extends SpawnOptions.Readable = "inherit",
7570
+ const Err extends SpawnOptions.Readable = "pipe",
7569
7571
  >(
7570
7572
  /**
7571
7573
  * The command to run
@@ -7582,7 +7584,7 @@ declare module "bun" {
7582
7584
  * ```
7583
7585
  */
7584
7586
  cmds: string[],
7585
- options?: SpawnOptions.OptionsObject<"ignore", Out, Err>,
7587
+ options?: SpawnOptions.OptionsObject<In, Out, Err>,
7586
7588
  ): SyncSubprocess<Out, Err>;
7587
7589
 
7588
7590
  /** Utility type for any process from {@link Bun.spawn()} with both stdout and stderr set to `"pipe"` */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bun-types-no-globals",
3
- "version": "1.2.21-canary.20250811T140726",
3
+ "version": "1.2.21-canary.20250812T140642",
4
4
  "main": "./generator/index.ts",
5
5
  "types": "./lib/index.d.ts",
6
6
  "license": "MIT",