bun-types-no-globals 1.3.7-canary.20260121T141246 → 1.3.7-canary.20260122T141344

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 +14 -3
  2. package/package.json +1 -1
package/lib/bun.d.ts CHANGED
@@ -1745,6 +1745,17 @@ declare module "bun" {
1745
1745
  * @default "warn"
1746
1746
  */
1747
1747
  logLevel?: "verbose" | "debug" | "info" | "warn" | "error";
1748
+
1749
+ /**
1750
+ * Enable REPL mode transforms:
1751
+ * - Wraps top-level inputs that appear to be object literals (inputs starting with '{' without trailing ';') in parentheses
1752
+ * - Hoists all declarations as var for REPL persistence across vm.runInContext calls
1753
+ * - Wraps last expression in { __proto__: null, value: expr } for result capture
1754
+ * - Wraps code in sync/async IIFE to avoid parentheses around object literals
1755
+ *
1756
+ * @default false
1757
+ */
1758
+ replMode?: boolean;
1748
1759
  }
1749
1760
 
1750
1761
  /**
@@ -1851,7 +1862,7 @@ declare module "bun" {
1851
1862
  type Architecture = "x64" | "arm64";
1852
1863
  type Libc = "glibc" | "musl";
1853
1864
  type SIMD = "baseline" | "modern";
1854
- type Target =
1865
+ type CompileTarget =
1855
1866
  | `bun-darwin-${Architecture}`
1856
1867
  | `bun-darwin-x64-${SIMD}`
1857
1868
  | `bun-linux-${Architecture}`
@@ -2193,7 +2204,7 @@ declare module "bun" {
2193
2204
  }
2194
2205
 
2195
2206
  interface CompileBuildOptions {
2196
- target?: Bun.Build.Target;
2207
+ target?: Bun.Build.CompileTarget;
2197
2208
  execArgv?: string[];
2198
2209
  executablePath?: string;
2199
2210
  outfile?: string;
@@ -2275,7 +2286,7 @@ declare module "bun" {
2275
2286
  * });
2276
2287
  * ```
2277
2288
  */
2278
- compile: boolean | Bun.Build.Target | CompileBuildOptions;
2289
+ compile: boolean | Bun.Build.CompileTarget | CompileBuildOptions;
2279
2290
 
2280
2291
  /**
2281
2292
  * Splitting is not currently supported with `.compile`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bun-types-no-globals",
3
- "version": "1.3.7-canary.20260121T141246",
3
+ "version": "1.3.7-canary.20260122T141344",
4
4
  "main": "./generator/index.ts",
5
5
  "types": "./lib/index.d.ts",
6
6
  "description": "TypeScript type definitions for Bun without global types pollution",