@apollo/client-react-streaming
Version:
This package provides building blocks to create framework-level integration of Apollo Client with React's streaming SSR. See the [@apollo/client-integration-nextjs](https://github.com/apollographql/apollo-client-integrations/tree/main/packages/nextjs) pac
12 lines (10 loc) • 360 B
text/typescript
declare class JSONEncodeStream<T> extends TransformStream<T, JsonString<T>> {
constructor();
}
declare class JSONDecodeStream<T> extends TransformStream<JsonString<T> | AllowSharedBufferSource, T> {
constructor();
}
type JsonString<Encoded> = string & {
__jsonString?: [Encoded];
};
export { JSONDecodeStream, JSONEncodeStream, type JsonString };