From 36b7ffd69aca678d0dbe1f6a4c67d6f8a914837e Mon Sep 17 00:00:00 2001 From: JATMN Date: Fri, 23 Oct 2026 05:08:10 -0700 Subject: [PATCH] build: prepare tsconfig and relay types for TypeScript 6 (#2348) --- src/upstreamproxy/relay.ts | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/upstreamproxy/relay.ts b/src/upstreamproxy/relay.ts index cd17f7329..837f06a1a 100644 --- a/src/upstreamproxy/relay.ts +++ b/src/upstreamproxy/relay.ts @@ -63,7 +63,7 @@ const PING_INTERVAL_MS = 30_000 * protobufjs would be the general answer; for a single-field bytes message * the hand encoding is 10 lines and avoids a runtime dep in the hot path. */ -export function encodeChunk(data: Uint8Array): Uint8Array { +export function encodeChunk(data: Uint8Array): Uint8Array { const len = data.length // varint encoding of length — most chunks fit in 1–3 length bytes const varint: number[] = [] diff --git a/tsconfig.json b/tsconfig.json index eb9ed65a5..6a95a78e5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,7 +16,7 @@ "declaration": false, "outDir": "./dist", "rootDir": "./src", - "baseUrl": ".", + "types": ["bun", "node"], "paths": { "src/*": ["./src/*"] }