forked from mirror/crumbs-original
@vite-pwa/sveltekit does not auto-inject SW registration into SSR HTML. Add explicit registration via virtual:pwa-register in root layout onMount, inject webmanifest link via virtual:pwa-info, disable SvelteKit's built-in SW registration to avoid conflicts, and add required dependencies. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
486 B
TypeScript
24 lines
486 B
TypeScript
/// <reference types="vite-plugin-pwa/info" />
|
|
/// <reference types="vite-plugin-pwa/vanillajs" />
|
|
|
|
// See https://svelte.dev/docs/kit/types#app.d.ts
|
|
// for information about these interfaces
|
|
declare global {
|
|
namespace App {
|
|
// interface Error {}
|
|
interface Locals {
|
|
user: {
|
|
id: number;
|
|
email: string;
|
|
displayName: string;
|
|
role: 'admin' | 'user';
|
|
} | null;
|
|
}
|
|
// interface PageData {}
|
|
// interface PageState {}
|
|
// interface Platform {}
|
|
}
|
|
}
|
|
|
|
export {};
|