Skip to content

Commit 290fa99

Browse files
fix: remove redundant ts-broadcasting type declaration
ts-broadcasting ships its own .d.ts files. The manual declaration was only needed when the package was a broken bun link. Fixed broadcastPrivate to use Broadcast.send with private- prefix (no .private() method exists). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2d56647 commit 290fa99

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

packages/stx/src/broadcasting.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export function broadcastPrivate<T = unknown>(
267267
data: T,
268268
): void {
269269
if (!isReady()) return
270-
Broadcast.private(channelName, event, data)
270+
Broadcast.send(`private-${channelName}`, event, data)
271271
}
272272

273273
/**

packages/stx/src/types/ts-broadcasting.d.ts

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)