Provides a mechanism to retrieve and query all mounted Svelte components including the main application shell.

interface GetSvelteData {
    get applicationShell(): MountedAppShell;
    get length(): number;
    component(index: number): object;
    componentEntries(): IterableIterator<[number, SvelteComponent<any, any, any>], any, any>;
    componentValues(): IterableIterator<SvelteComponent<any, any, any>, any, any>;
    data(index: number): SvelteData;
    dataByComponent(component: SvelteComponent<any, any, any>): SvelteData;
    dataEntries(): IterableIterator<[number, SvelteData], any, any>;
    dataValues(): IterableIterator<SvelteData, any, any>;
}

Accessors

  • get length(): number
  • Returns the length of the mounted Svelte component list.

    Returns number

    Length of mounted Svelte component list.

Methods

  • Returns the indexed Svelte component.

    Parameters

    • index: number

      The index of Svelte component to retrieve.

    Returns object

    The loaded Svelte component.

  • Returns the indexed SvelteData entry.

    Parameters

    • index: number

      The index of SvelteData instance to retrieve.

    Returns SvelteData

    The loaded Svelte config + component.