Interface GetSvelteData
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>;
}
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>;
}
Index
Accessors
applicationShell
- get applicationShell(): MountedAppShell
Returns any mounted MountedAppShell.
Returns MountedAppShell
Any mounted application shell.
length
- get length(): number
Returns the length of the mounted Svelte component list.
Returns number
Length of mounted Svelte component list.
Methods
component
componentEntries
- component
Entries (): IterableIterator<[number, SvelteComponent<any, any, any>], any, any> Returns the Svelte component entries iterator.
Returns IterableIterator<[number, SvelteComponent<any, any, any>], any, any>
Svelte component entries iterator.
componentValues
- component
Values (): IterableIterator<SvelteComponent<any, any, any>, any, any> Returns the Svelte component values iterator.
Returns IterableIterator<SvelteComponent<any, any, any>, any, any>
Svelte component values iterator.
data
- data(index): SvelteData
Returns the indexed SvelteData entry.
Parameters
- index: number
The index of SvelteData instance to retrieve.
Returns SvelteData
The loaded Svelte config + component.
- index: number
dataByComponent
- data
By (component): SvelteDataComponent Returns the SvelteData instance for a given component.
Parameters
- component: SvelteComponent<any, any, any>
Svelte component.
Returns SvelteData
- The loaded Svelte config + component.
- component: SvelteComponent<any, any, any>
dataEntries
- data
Entries (): IterableIterator<[number, SvelteData], any, any> Returns the SvelteData entries iterator.
Returns IterableIterator<[number, SvelteData], any, any>
SvelteData entries iterator.
dataValues
- data
Values (): IterableIterator<SvelteData, any, any> Returns the SvelteData values iterator.
Returns IterableIterator<SvelteData, any, any>
SvelteData values iterator.
Provides a mechanism to retrieve and query all mounted Svelte components including the main application shell.