Generated API snapshot
@askrjs/themes/ssr
Exports from the declarations published in @askrjs/themes. Signatures reflect the published artifact.
Exports
This entrypoint publishes 2 exports. Use the anchored symbol rows for direct links. Type-only exports are labeled separately from runtime values.
DocumentRenderArgsLiketype
DocumentRenderArgsLike: {
appHtml: string;
context: {
cspNonce?: string;
styles?: readonly {
id: string;
cssText: string;
}[];
};
}withThemeStyles
withThemeStyles: <TArgs extends DocumentRenderArgsLike>(documentRenderer: (args: TArgs) => string) => (args: TArgs) => stringWrap an Askr SSR/SSG document renderer so generated theme rules used by the rendered app are available before hydration.