full site update
This commit is contained in:
26
node_modules/astro/dist/container/index.d.ts
generated
vendored
26
node_modules/astro/dist/container/index.d.ts
generated
vendored
@@ -1,6 +1,19 @@
|
||||
import './polyfill.js';
|
||||
import type { AstroUserConfig, NamedSSRLoadedRendererValue, Props, RouteType, SSRLoadedRenderer, SSRLoadedRendererValue, SSRManifest, SSRResult } from '../@types/astro.js';
|
||||
import type { AstroComponentFactory } from '../runtime/server/index.js';
|
||||
import type { Props } from '../types/public/common.js';
|
||||
import type { AstroUserConfig } from '../types/public/config.js';
|
||||
import type { NamedSSRLoadedRendererValue, RouteType, SSRLoadedRenderer, SSRLoadedRendererValue, SSRManifest, SSRResult } from '../types/public/internal.js';
|
||||
/** Public type, used for integrations to define a renderer for the container API */
|
||||
export type ContainerRenderer = {
|
||||
/**
|
||||
* The name of the renderer.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The entrypoint that is used to render a component on the server
|
||||
*/
|
||||
serverEntrypoint: string;
|
||||
};
|
||||
/**
|
||||
* Options to be passed when rendering a route
|
||||
*/
|
||||
@@ -230,4 +243,15 @@ export declare class experimental_AstroContainer {
|
||||
* @param {ContainerRenderOptions=} options Possible options to pass when rendering the component.
|
||||
*/
|
||||
renderToResponse(component: AstroComponentFactory, options?: ContainerRenderOptions): Promise<Response>;
|
||||
/**
|
||||
* It stores an Astro **page** route. The first argument, `route`, gets associated to the `component`.
|
||||
*
|
||||
* This function can be useful when you want to render a route via `AstroContainer.renderToString`, where that
|
||||
* route eventually renders another route via `Astro.rewrite`.
|
||||
*
|
||||
* @param {string} route - The URL that will render the component.
|
||||
* @param {AstroComponentFactory} component - The component factory to be used for rendering the route.
|
||||
* @param {Record<string, string | undefined>} params - An object containing key-value pairs of route parameters.
|
||||
*/
|
||||
insertPageRoute(route: string, component: AstroComponentFactory, params?: Record<string, string | undefined>): void;
|
||||
}
|
||||
|
Reference in New Issue
Block a user