interface / @typed/vue/Typed

TypedProps

Props for a Typed view hosted inside a Vue component.

Package version
1.0.0-beta.13
Category
interface

Import

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

Signatures

export interface TypedProps<V extends Renderable.Any, ER = never> {
    readonly value: V;
    readonly onError?: (cause: Cause.Cause<NoInfer<Renderable.Error<V>> | ER>) => void;
    readonly stopPropagation?: RootEventOptions;
    readonly id?: string;
}

Property: id

Defaults to Vue useId, which is stable across server rendering and hydration.

Property: onError

Overrides reporting to Vue’s component error boundary. Receives the full Effect cause.

Source