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:
parent
7e11832526
commit
f55dc45a31
@ -15,7 +15,7 @@ export interface BunServerWebSocket<T> {
|
||||
interface BunWebSocketHandler<T> {
|
||||
open(ws: BunServerWebSocket<T>): 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> {
|
||||
upgradeWebSocket: UpgradeWebSocket<T>
|
||||
|
Loading…
Reference in New Issue
Block a user