interface / @typed/svelte/Typed

TypedProps

Props for the Svelte component that embeds a Typed renderable.

Package version
1.0.0-beta.13
Category
interface

Import

import { TypedProps } from "@typed/svelte/Typed";

Signatures

export interface TypedProps<V extends Renderable.Any, ER = never> extends AttachmentOptions<Renderable.Error<V> | ER> {
    readonly runtime?: Runtime<Exclude<Exclude<Renderable.Services<V>, RenderTemplate>, Scope.Scope>, ER>;
    readonly value: V;
    readonly id?: string;
}

Property: id

Optional host id; defaults to Svelte $props.id(), stable during SSR and hydration.

Source