bun-types 1.1.21-canary.20240725T140457 → 1.1.21

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/bun.d.ts +2 -2
  2. package/package.json +1 -1
package/bun.d.ts CHANGED
@@ -4002,7 +4002,7 @@ declare module "bun" {
4002
4002
  */
4003
4003
  const isMainThread: boolean;
4004
4004
 
4005
- interface Socket<Data = undefined> {
4005
+ interface Socket<Data = undefined> extends Disposable {
4006
4006
  /**
4007
4007
  * Write `data` to the socket
4008
4008
  *
@@ -4296,7 +4296,7 @@ declare module "bun" {
4296
4296
  setMaxSendFragment(size: number): boolean;
4297
4297
  }
4298
4298
 
4299
- interface SocketListener<Data = undefined> {
4299
+ interface SocketListener<Data = undefined> extends Disposable {
4300
4300
  stop(closeActiveConnections?: boolean): void;
4301
4301
  ref(): void;
4302
4302
  unref(): void;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.21-canary.20240725T140457",
2
+ "version": "1.1.21",
3
3
  "name": "bun-types",
4
4
  "license": "MIT",
5
5
  "main": "",