From f55dc45a317a8461dc5ae923c42bc8ffe37eb299 Mon Sep 17 00:00:00 2001 From: Shotaro Nakamura <79000684+nakasyou@users.noreply.github.com> Date: Sun, 27 Oct 2024 10:14:06 +0900 Subject: [PATCH] fix(bun/ws): fix invalid types (#3562) --- src/adapter/bun/websocket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapter/bun/websocket.ts b/src/adapter/bun/websocket.ts index 34b5b1ef..9c9dc8b0 100644 --- a/src/adapter/bun/websocket.ts +++ b/src/adapter/bun/websocket.ts @@ -15,7 +15,7 @@ export interface BunServerWebSocket { interface BunWebSocketHandler { open(ws: BunServerWebSocket): void close(ws: BunServerWebSocket, code?: number, reason?: string): void - message(ws: BunServerWebSocket, message: string | Uint8Array): void + message(ws: BunServerWebSocket, message: string | { buffer: ArrayBufferLike }): void } interface CreateWebSocket { upgradeWebSocket: UpgradeWebSocket