interface / @typed/react

TypedProps

Stable host identity; React useId supplies the default for SSR and hydration.

Package version
1.0.0-beta.13
Category
interface

Import

import { TypedProps } from "@typed/react";

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

Signatures

export interface TypedProps<T extends Renderable.Any, ER = never> {
    readonly value: T;
    readonly id?: string;
    readonly runtime?: Runtime<Exclude<Exclude<Renderable.Services<T>, RenderTemplate>, Scope>, ER>;
    readonly signal?: AbortSignal;
    readonly stopPropagation?: RootEventOptions;
    readonly onError?: (cause: Cause.Cause<Renderable.Error<T> | ER>) => void;
}

Property: id

Stable host identity; React useId supplies the default for SSR and hydration.

Property: onError

Producer, renderer and runtime-layer failures. Normal cleanup interruption is excluded.

Property: runtime

Caller-owned runtime; the component never disposes it.

Property: signal

Cancels pending server rendering. Pass the request’s signal when aborting React SSR.

Property: stopPropagation

Per-event bubbling policy at the automatic host; updates retain its current rendering.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source