Skip to content

Commit 2cc1086

Browse files
committed
fix(rivetkit): use any cast for Response body type compatibility
1 parent 7c52383 commit 2cc1086

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rivetkit-typescript/packages/rivetkit/src/dynamic/isolate-runtime.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ function buildErrorResponse(request: Request, error: unknown): Response {
148148
}),
149149
);
150150

151-
return new Response(output as BodyInit, {
151+
// biome-ignore lint/suspicious/noExplicitAny: serializeWithEncoding returns string | Uint8Array, both valid for Response
152+
return new Response(output as any, {
152153
status: statusCode,
153154
headers: {
154155
"Content-Type": contentTypeForEncoding(encoding),

0 commit comments

Comments
 (0)