function / @typed/astro/Component

isComponent

Checks the Astro component brand without executing a candidate component. Used by renderer discovery so probing does not run another framework’s setup.

Package version
1.0.0-beta.13
Category
Renderer discovery
Since
1.0.0

Import

import { isComponent } from "@typed/astro/Component";

Signatures

export declare function isComponent(value: unknown): value is Fx.Fx<RenderEvent, unknown, Services> | ((props: Record<string, unknown>, slots: Slots) => Fx.Fx<RenderEvent, unknown, Services>);

Source