Skip to content

Support arbitrary RPC-compatible chunk types in ReadableStream<T> #213

Description

@changesbyjames

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions