UNPKG

oc-template-react

Version:
18 lines (17 loc) 502 B
export interface SsrOptions { key: string; model: { component: { src: string; key: string; props: Record<string, any>; }; }; template: (model: any) => string; } export declare function ssr({ globals, componentName, options, renderer, }: { globals: Record<string, any>; componentName: string; options: SsrOptions; renderer: (CachedApp: any, props: Record<string, any>) => string | Promise<string>; }): Promise<string>;