From b7717c1b6454c3e3dc9bc0e6e985afa2d6c16dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ari=20Perkki=C3=B6?= Date: Mon, 8 Dec 2025 10:07:15 +0200 Subject: [PATCH] chore: type error on `birpc@3.0.0` types (#9206) --- packages/ws-client/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ws-client/src/index.ts b/packages/ws-client/src/index.ts index 70919a59a..828025cca 100644 --- a/packages/ws-client/src/index.ts +++ b/packages/ws-client/src/index.ts @@ -87,7 +87,7 @@ export function createClient(url: string, options: VitestClientOptions = {}): Vi }, } - const birpcHandlers: BirpcOptions = { + 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 ctx.rpc = createBirpc( functions, -- 2.51.2