bun-types 1.0.12 → 1.0.13

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/package.json +2 -1
  2. package/types.d.ts +11 -3
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "bun-types",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
+ "license": "MIT",
4
5
  "description": "Type definitions for Bun, an incredibly fast JavaScript runtime",
5
6
  "types": "types.d.ts",
6
7
  "files": [
package/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for bun 1.0.12
1
+ // Type definitions for bun 1.0.13
2
2
  // Project: https://github.com/oven-sh/bun
3
3
  // Definitions by: Jarred Sumner <https://github.com/Jarred-Sumner>
4
4
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -10741,6 +10741,14 @@ interface Process {
10741
10741
  constrainedMemory(): number | undefined;
10742
10742
 
10743
10743
  send(data: any): void;
10744
+
10745
+ report: {
10746
+ getReport(): Object;
10747
+ /**
10748
+ * @TODO This is not implemented yet
10749
+ */
10750
+ writeReport(fileName?: string): void;
10751
+ };
10744
10752
  }
10745
10753
 
10746
10754
  interface MemoryUsageObject {
@@ -38269,7 +38277,7 @@ declare module "bun" {
38269
38277
  this: Server,
38270
38278
  request: Request,
38271
38279
  server: Server,
38272
- ): Response | undefined | Promise<Response | undefined>;
38280
+ ): Response | undefined | void | Promise<Response | undefined | void>;
38273
38281
  }
38274
38282
 
38275
38283
  export interface UnixWebSocketServeOptions<WebSocketDataType = undefined>
@@ -38330,7 +38338,7 @@ declare module "bun" {
38330
38338
  this: Server,
38331
38339
  request: Request,
38332
38340
  server: Server,
38333
- ): Response | undefined | Promise<Response | undefined>;
38341
+ ): Response | undefined | void | Promise<Response | undefined | void>;
38334
38342
  }
38335
38343
 
38336
38344
  export interface TLSWebSocketServeOptions<WebSocketDataType = undefined>