1/**
2 * Imported by the widgets page as `$spa/widgets` — the alias is declared in
3 * the user's `vite.config.ts` (`sveltekit({ alias: { $spa: "src/lib" } })`),
4 * so the route only resolves when that config file is honored.
5 */
6export interface Widget {
7 readonly id: string;
8 readonly name: string;
9}
10
11export const describeWidgets = (widgets: ReadonlyArray<Widget>): string =>
12 `widgets-via-user-alias:${widgets.length}`;