Hey! I think there’s a small typing mismatch around streams: BaseType restricts readable streams to ReadableStream<Uint8Array>, but the stream implementation passes each chunk through normal RPC serialization, and other RPC-compatible values such as strings work at runtime. Could ReadableStream<T> be typed similarly to WritableStream<any> so the chunk’s type is preserved through RpcTarget signatures?
Hey! I think there’s a small typing mismatch around streams: BaseType restricts readable streams to
ReadableStream<Uint8Array>, but the stream implementation passes each chunk through normal RPC serialization, and other RPC-compatible values such as strings work at runtime. CouldReadableStream<T>be typed similarly toWritableStream<any>so the chunk’s type is preserved through RpcTarget signatures?