Erased stream handle useful as a parameter type for helpers and
wrapper components that pass a stream through to selector hooks
(useMessages, useChannel, …) without reading values directly.
Any fully-typed UseStreamReturn<S, I, C> is
assignable to AnyStream because the generic slots are any
(bivariant), which avoids the CompiledStateGraph → Record<string, unknown> assignment friction you hit when using the bare
UseStreamReturn default.
AnyStream: UseStreamReturn<any, any, any>function SubgraphCard({ stream, subgraph }: {
stream: AnyStream;
subgraph: SubgraphDiscoverySnapshot;
}) {
const messages = useMessages(stream, subgraph);
return <Feed messages={messages} />;
}