bun-types-no-globals 1.3.2-canary.20251101T140546 → 1.3.2-canary.20251102T140546

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/serve.d.ts +10 -0
  2. package/package.json +1 -1
package/lib/serve.d.ts CHANGED
@@ -202,6 +202,16 @@ declare module "bun" {
202
202
  */
203
203
  isSubscribed(topic: string): boolean;
204
204
 
205
+ /**
206
+ * Returns an array of all topics the client is currently subscribed to.
207
+ *
208
+ * @example
209
+ * ws.subscribe("chat");
210
+ * ws.subscribe("notifications");
211
+ * console.log(ws.subscriptions); // ["chat", "notifications"]
212
+ */
213
+ readonly subscriptions: string[];
214
+
205
215
  /**
206
216
  * Batches `send()` and `publish()` operations, which makes it faster to send data.
207
217
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bun-types-no-globals",
3
- "version": "1.3.2-canary.20251101T140546",
3
+ "version": "1.3.2-canary.20251102T140546",
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",