@@ -2977,27 +2977,29 @@ export interface AstroRenderer {
29772977 jsxTransformOptions ?: JSXTransformFn ;
29782978}
29792979
2980- export interface SSRLoadedRenderer extends AstroRenderer {
2981- ssr : {
2982- check : AsyncRendererComponentFn < boolean > ;
2983- renderToStaticMarkup : AsyncRendererComponentFn < {
2984- html : string ;
2985- attrs ?: Record < string , string > ;
2986- } > ;
2987- supportsAstroStaticSlot ?: boolean ;
2988- /**
2989- * If provided, Astro will call this function and inject the returned
2990- * script in the HTML before the first component handled by this renderer.
2991- *
2992- * This feature is needed by some renderers (in particular, by Solid). The
2993- * Solid official hydration script sets up a page-level data structure.
2994- * It is mainly used to transfer data between the server side render phase
2995- * and the browser application state. Solid Components rendered later in
2996- * the HTML may inject tiny scripts into the HTML that call into this
2997- * page-level data structure.
2998- */
2999- renderHydrationScript ?: ( ) => string ;
3000- } ;
2980+ export type SSRLoadedRendererValue = {
2981+ check : AsyncRendererComponentFn < boolean > ;
2982+ renderToStaticMarkup : AsyncRendererComponentFn < {
2983+ html : string ;
2984+ attrs ?: Record < string , string > ;
2985+ } > ;
2986+ supportsAstroStaticSlot ?: boolean ;
2987+ /**
2988+ * If provided, Astro will call this function and inject the returned
2989+ * script in the HTML before the first component handled by this renderer.
2990+ *
2991+ * This feature is needed by some renderers (in particular, by Solid). The
2992+ * Solid official hydration script sets up a page-level data structure.
2993+ * It is mainly used to transfer data between the server side render phase
2994+ * and the browser application state. Solid Components rendered later in
2995+ * the HTML may inject tiny scripts into the HTML that call into this
2996+ * page-level data structure.
2997+ */
2998+ renderHydrationScript ?: ( ) => string ;
2999+ }
3000+
3001+ export interface SSRLoadedRenderer extends Pick < AstroRenderer , 'name' | 'clientEntrypoint' > {
3002+ ssr : SSRLoadedRendererValue ;
30013003}
30023004
30033005export type HookParameters <
0 commit comments