UNPKG

rwsdk

Version:

Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime

10 lines (9 loc) 429 B
import React from "react"; import ReactServerDom from "react-dom/server.edge"; import { type DocumentProps } from "../lib/router"; import { type RequestInfo } from "../requestInfo/types"; export declare const renderRscThenableToHtmlStream: ({ thenable, Document, requestInfo, }: { thenable: any; Document: React.FC<DocumentProps>; requestInfo: RequestInfo; }) => Promise<ReactServerDom.ReactDOMServerReadableStream>;