vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
9 lines • 549 B
TypeScript
import { PassThrough } from "node:stream";
import type { CreateHandlerOptions } from "../types.js";
import type { StreamHandlers } from "../worker/types.js";
/**
* Server-specific React stream creation with error handling
* This function is only available in server environments
*/
export declare function createReactStream(element: React.ReactElement, options: CreateHandlerOptions, handlers: Pick<StreamHandlers<"server">, "onError" | "onPostpone" | "onEnd" | "onData">): PassThrough;
//# sourceMappingURL=renderRscStreamHelpers.server.d.ts.map