vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
22 lines • 658 B
TypeScript
export interface ResolveStreamElementsOptions {
route: string;
moduleRootPath: string;
moduleBasePath?: string;
pagePath?: string;
propsPath?: string;
rootPath?: string;
htmlPath?: string;
moduleBaseURL: string;
verbose?: boolean;
logger?: any;
id: string;
}
export type ResolveStreamElementsResult = {
type: "client";
elements: any;
} | {
type: "server";
elements: any;
};
export type ResolveStreamElementsFn = <Opt extends ResolveStreamElementsOptions = ResolveStreamElementsOptions>(options: Opt) => Promise<ResolveStreamElementsResult>;
//# sourceMappingURL=resolveStreamElements.types.d.ts.map