UNPKG

vite-plugin-react-server

Version:
9 lines 813 B
import type { CreateHandlerOptions } from "../types.js"; export type CreateElementWithReactOptions = Pick<CreateHandlerOptions, "HtmlComponent" | "PageComponent" | "RootComponent" | "pageProps" | "moduleBase" | "moduleRootPath" | "moduleBasePath" | "moduleBaseURL" | "cssFiles" | "globalCss" | "route" | "manifest" | "projectRoot" | "url" | "as"> & Partial<Pick<CreateHandlerOptions, "verbose" | "logger">>; export type CreateElementWithReactFN = <R extends { Fragment: any; use: any; isValidElement: (element: any) => boolean; }, ReturnType = React.ReactElement, Opt extends CreateElementWithReactOptions = CreateElementWithReactOptions>(React: R, options: Opt) => ReturnType; export declare const createElementWithReact: CreateElementWithReactFN; //# sourceMappingURL=createElementWithReact.d.ts.map