@wroud/vite-plugin-ssg
Version:
A Vite plugin for static site generation (SSG) with React. Renders React applications to static HTML for faster load times and improved SEO.
11 lines • 631 B
TypeScript
import type { IndexComponent, IndexComponentContext } from "./IndexComponent.js";
import type { HtmlTagDescriptor } from "vite";
import type { IAppContext } from "../app/IAppContext.js";
import { AppInstance } from "../app/AppInstance.js";
export interface IClientAPI<T extends IAppContext> {
appStartData: T;
context: IndexComponentContext;
hydrate: (htmlTags: HtmlTagDescriptor[]) => Promise<void>;
}
export declare function create<T extends IAppContext>(indexOrApp: IndexComponent | AppInstance<T>, context: IndexComponentContext, mainScriptUrl?: string): Promise<IClientAPI<T>>;
//# sourceMappingURL=client.d.ts.map