bun-types-no-globals 1.2.22-canary.20250903T140652 → 1.2.22-canary.20250904T140708

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.
package/lib/bun.d.ts CHANGED
@@ -1705,11 +1705,16 @@ declare module "bun" {
1705
1705
  * @see [Bun.build API docs](https://bun.com/docs/bundler#api)
1706
1706
  */
1707
1707
  interface BuildConfigBase {
1708
- entrypoints: string[]; // list of file path
1708
+ /**
1709
+ * List of entrypoints, usually file paths
1710
+ */
1711
+ entrypoints: string[];
1712
+
1709
1713
  /**
1710
1714
  * @default "browser"
1711
1715
  */
1712
1716
  target?: Target; // default: "browser"
1717
+
1713
1718
  /**
1714
1719
  * Output module format. Top-level await is only supported for `"esm"`.
1715
1720
  *
@@ -1940,12 +1945,28 @@ declare module "bun" {
1940
1945
  * ```
1941
1946
  */
1942
1947
  compile: boolean | Bun.Build.Target | CompileBuildOptions;
1948
+
1949
+ /**
1950
+ * Splitting is not currently supported with `.compile`
1951
+ */
1952
+ splitting?: never;
1953
+ }
1954
+
1955
+ interface NormalBuildConfig extends BuildConfigBase {
1956
+ /**
1957
+ * Enable code splitting
1958
+ *
1959
+ * This does not currently work with {@link CompileBuildConfig.compile `compile`}
1960
+ *
1961
+ * @default true
1962
+ */
1963
+ splitting?: boolean;
1943
1964
  }
1944
1965
 
1945
1966
  /**
1946
1967
  * @see [Bun.build API docs](https://bun.com/docs/bundler#api)
1947
1968
  */
1948
- type BuildConfig = BuildConfigBase | CompileBuildConfig;
1969
+ type BuildConfig = CompileBuildConfig | NormalBuildConfig;
1949
1970
 
1950
1971
  /**
1951
1972
  * Hash and verify passwords using argon2 or bcrypt
@@ -5546,6 +5567,11 @@ declare module "bun" {
5546
5567
  type OnLoadCallback = (args: OnLoadArgs) => OnLoadResult | Promise<OnLoadResult>;
5547
5568
  type OnStartCallback = () => void | Promise<void>;
5548
5569
  type OnEndCallback = (result: BuildOutput) => void | Promise<void>;
5570
+ type OnBeforeParseCallback = {
5571
+ napiModule: unknown;
5572
+ symbol: string;
5573
+ external?: unknown | undefined;
5574
+ };
5549
5575
 
5550
5576
  interface OnResolveArgs {
5551
5577
  /**
@@ -5642,14 +5668,7 @@ declare module "bun" {
5642
5668
  * @returns `this` for method chaining
5643
5669
  */
5644
5670
  onEnd(callback: OnEndCallback): this;
5645
- onBeforeParse(
5646
- constraints: PluginConstraints,
5647
- callback: {
5648
- napiModule: unknown;
5649
- symbol: string;
5650
- external?: unknown | undefined;
5651
- },
5652
- ): this;
5671
+ onBeforeParse(constraints: PluginConstraints, callback: OnBeforeParseCallback): this;
5653
5672
  /**
5654
5673
  * Register a callback to load imports with a specific import specifier
5655
5674
  * @param constraints The constraints to apply the plugin to
package/lib/ffi.d.ts CHANGED
@@ -219,44 +219,39 @@ declare module "bun:ffi" {
219
219
 
220
220
  /**
221
221
  * int64 is a 64-bit signed integer
222
- *
223
- * This is not implemented yet!
224
222
  */
225
223
  int64_t = 7,
226
224
  /**
227
225
  * i64 is a 64-bit signed integer
228
- *
229
- * This is not implemented yet!
230
226
  */
231
227
  i64 = 7,
232
228
 
233
229
  /**
234
230
  * 64-bit unsigned integer
235
- *
236
- * This is not implemented yet!
237
231
  */
238
232
  uint64_t = 8,
239
233
  /**
240
234
  * 64-bit unsigned integer
241
- *
242
- * This is not implemented yet!
243
235
  */
244
236
  u64 = 8,
245
237
 
246
238
  /**
247
- * Doubles are not supported yet!
239
+ * IEEE-754 double precision float
248
240
  */
249
241
  double = 9,
242
+
250
243
  /**
251
- * Doubles are not supported yet!
244
+ * Alias of {@link FFIType.double}
252
245
  */
253
246
  f64 = 9,
247
+
254
248
  /**
255
- * Floats are not supported yet!
249
+ * IEEE-754 single precision float
256
250
  */
257
251
  float = 10,
252
+
258
253
  /**
259
- * Floats are not supported yet!
254
+ * Alias of {@link FFIType.float}
260
255
  */
261
256
  f32 = 10,
262
257
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bun-types-no-globals",
3
- "version": "1.2.22-canary.20250903T140652",
3
+ "version": "1.2.22-canary.20250904T140708",
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",