4307955163
- vite.config.ts: read package.json and expose its version as a
build-time global via Vite's `define`.
- app.d.ts: add ambient declaration so the layout's brand version
badge (`v{__APP_VERSION__}`) type-checks.
17 lines
367 B
TypeScript
17 lines
367 B
TypeScript
// Ambient type declarations for SvelteKit + project-level build-time globals.
|
|
|
|
declare global {
|
|
/** App version, injected from frontend/package.json at build time. */
|
|
const __APP_VERSION__: string;
|
|
|
|
namespace App {
|
|
// interface Error {}
|
|
// interface Locals {}
|
|
// interface PageData {}
|
|
// interface PageState {}
|
|
// interface Platform {}
|
|
}
|
|
}
|
|
|
|
export {};
|