interface / @typed/svelte/Attachment

AttachmentOptions

Options for the render scope owned by a native Svelte attachment.

Package version
1.0.0-beta.13
Category
interface

Import

import { AttachmentOptions } from "@typed/svelte/Attachment";

Signatures

export interface AttachmentOptions<E> {
    readonly stopPropagation?: RootEventOptions;
    readonly onReady?: () => void;
    readonly onError?: (cause: Cause.Cause<E>) => void;
}

Property: onReady

Runs after Typed attaches its first output; nested frameworks commit on their own schedule.

Source