variable / @typed/astro/server

default

Astro renderer protocol for branded Typed components and trusted Astro slots. Each render owns an HTML rendering scope that closes after serialization. Astro loads this entry through the integration; it is not a raw-HTML API.

Package version
1.0.0-beta.7
Category
Server rendering
Since
1.0.0

Import

import renderer from "@typed/astro/server";

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

Signatures

declare const renderer: {
    name: string;
    supportsAstroStaticSlot: true;
    check(component: unknown): Promise<boolean>;
    renderToStaticMarkup(component: unknown, props: Record<string, unknown>, slots?: Record<string, string>, metadata?: AstroComponentMetadata): Promise<{
        html: string;
    }>;
};
export default renderer;

Source