vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
12 lines • 505 B
TypeScript
import type { FileWriterFn } from "./types.js";
/**
* Writes HTML and RSC files for a route using streams
*
* @param stream The readable stream containing the content
* @param fileType The type of file being written ("html" or "rsc")
* @param options The file writer options
* @param signal Optional AbortSignal to cancel the file write operation
* @returns A promise that resolves when the file is written
*/
export declare const fileWriter: FileWriterFn;
//# sourceMappingURL=fileWriter.d.ts.map