bun-types-no-globals 1.2.22-canary.20250903T140652 → 1.2.22-canary.20250905T140553

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
@@ -3825,6 +3846,11 @@ declare module "bun" {
3825
3846
  * @category HTTP & Networking
3826
3847
  */
3827
3848
  interface Server extends Disposable {
3849
+ /*
3850
+ * Closes all connections connected to this server which are not sending a request or waiting for a response. Does not close the listen socket.
3851
+ */
3852
+ closeIdleConnections(): void;
3853
+
3828
3854
  /**
3829
3855
  * Stop listening to prevent new connections from being accepted.
3830
3856
  *
@@ -5546,6 +5572,11 @@ declare module "bun" {
5546
5572
  type OnLoadCallback = (args: OnLoadArgs) => OnLoadResult | Promise<OnLoadResult>;
5547
5573
  type OnStartCallback = () => void | Promise<void>;
5548
5574
  type OnEndCallback = (result: BuildOutput) => void | Promise<void>;
5575
+ type OnBeforeParseCallback = {
5576
+ napiModule: unknown;
5577
+ symbol: string;
5578
+ external?: unknown | undefined;
5579
+ };
5549
5580
 
5550
5581
  interface OnResolveArgs {
5551
5582
  /**
@@ -5642,14 +5673,7 @@ declare module "bun" {
5642
5673
  * @returns `this` for method chaining
5643
5674
  */
5644
5675
  onEnd(callback: OnEndCallback): this;
5645
- onBeforeParse(
5646
- constraints: PluginConstraints,
5647
- callback: {
5648
- napiModule: unknown;
5649
- symbol: string;
5650
- external?: unknown | undefined;
5651
- },
5652
- ): this;
5676
+ onBeforeParse(constraints: PluginConstraints, callback: OnBeforeParseCallback): this;
5653
5677
  /**
5654
5678
  * Register a callback to load imports with a specific import specifier
5655
5679
  * @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.20250905T140553",
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",