- Build Info grid now uses 2-column layout (Version|License, Platform|Build) - Build field shows date + short commit hash (6 chars) injected at build time via VITE_BUILD_COMMIT
41 lines
796 B
TypeScript
41 lines
796 B
TypeScript
// See https://svelte.dev/docs/kit/types#app.d.ts
|
|
|
|
declare global {
|
|
namespace App {
|
|
// interface Error {}
|
|
// interface Locals {}
|
|
// interface PageData {}
|
|
// interface PageState {}
|
|
// interface Platform {}
|
|
}
|
|
}
|
|
|
|
// Extend Vite's ImportMetaEnv with our custom env variables
|
|
interface ImportMetaEnv {
|
|
readonly VITE_BUILD_DATE: string;
|
|
readonly VITE_BUILD_COMMIT: string;
|
|
readonly VITE_IMMERSIVE_ENABLED: string;
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv;
|
|
}
|
|
|
|
// Shader file imports (Vite ?raw)
|
|
declare module '*.vert?raw' {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.frag?raw' {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
declare module '*.glsl?raw' {
|
|
const content: string;
|
|
export default content;
|
|
}
|
|
|
|
export {};
|