interface / @typed/svelte

ViewOptions

Svelte mount, hydration and SSR options for one island.

Package version
1.0.0-beta.13
Category
interface

Import

import { ViewOptions } from "@typed/svelte";

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 ViewOptions {
    readonly id?: string;
    readonly stopPropagation?: RootEventOptions;
    readonly context?: Map<any, any>;
    readonly idPrefix?: string;
    readonly intro?: boolean;
    readonly recover?: boolean;
    readonly transformError?: (error: unknown) => unknown;
    readonly onHead?: (head: string) => void;
    readonly outro?: boolean;
    readonly csp?: {
        readonly nonce?: string;
        readonly hash?: boolean;
    };
}

Property: id

Optional host identity override. Generated per render and restored during hydration by default.

Property: onHead

Receives Svelte’s native head output when this island is server-rendered.

Property: stopPropagation

Per-event bubbling policy at the automatic host. Inherits CurrentRootEvents when omitted.

Other public imports

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

Source