0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-21 18:18:57 +01:00

fix(bun/ws): fix invalid types (#3562)

This commit is contained in:
Shotaro Nakamura 2024-10-27 10:14:06 +09:00 committed by GitHub
parent 7e11832526
commit f55dc45a31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,7 @@ export interface BunServerWebSocket<T> {
interface BunWebSocketHandler<T> { interface BunWebSocketHandler<T> {
open(ws: BunServerWebSocket<T>): void open(ws: BunServerWebSocket<T>): void
close(ws: BunServerWebSocket<T>, code?: number, reason?: string): void close(ws: BunServerWebSocket<T>, code?: number, reason?: string): void
message(ws: BunServerWebSocket<T>, message: string | Uint8Array): void message(ws: BunServerWebSocket<T>, message: string | { buffer: ArrayBufferLike }): void
} }
interface CreateWebSocket<T> { interface CreateWebSocket<T> {
upgradeWebSocket: UpgradeWebSocket<T> upgradeWebSocket: UpgradeWebSocket<T>