mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
chore: type error on birpc@3.0.0 types (#9206)
This commit is contained in:
parent
300648fb10
commit
b7717c1b64
@ -87,7 +87,7 @@ export function createClient(url: string, options: VitestClientOptions = {}): Vi
|
||||
},
|
||||
}
|
||||
|
||||
const birpcHandlers: BirpcOptions<WebSocketHandlers> = {
|
||||
const birpcHandlers = {
|
||||
post: msg => ctx.ws.send(msg),
|
||||
on: fn => (onMessage = fn),
|
||||
serialize: e =>
|
||||
@ -103,7 +103,7 @@ export function createClient(url: string, options: VitestClientOptions = {}): Vi
|
||||
}),
|
||||
deserialize: parse,
|
||||
timeout: -1,
|
||||
}
|
||||
} satisfies BirpcOptions<WebSocketHandlers>
|
||||
|
||||
ctx.rpc = createBirpc<WebSocketHandlers, WebSocketEvents>(
|
||||
functions,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user