Import
import { ViewOptions } from "@typed/svelte/view";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
packages/svelte/src/ViewOptions.ts:4packages/svelte/src/ViewOptions.ts:9packages/svelte/src/ViewOptions.ts:17packages/svelte/src/ViewOptions.ts:19packages/svelte/src/ViewOptions.ts:18packages/svelte/src/ViewOptions.ts:6packages/svelte/src/ViewOptions.ts:10packages/svelte/src/ViewOptions.ts:11packages/svelte/src/ViewOptions.ts:15packages/svelte/src/ViewOptions.ts:16packages/svelte/src/ViewOptions.ts:12packages/svelte/src/ViewOptions.ts:8packages/svelte/src/ViewOptions.ts:13