Vite define injects __BUILD_TIME__ and __BUILD_VERSION__ at build time so /health returns the exact timestamp and package version of the running build — useful for verifying deploys without guessing what changed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
40 lines
942 B
TypeScript
40 lines
942 B
TypeScript
// See https://kit.svelte.dev/docs/types#app
|
|
// for information about these interfaces
|
|
// and what to do when importing types
|
|
declare namespace App {
|
|
interface Locals {
|
|
userid: string;
|
|
}
|
|
// interface PageData {}
|
|
// interface Error {}
|
|
// interface Platform {}
|
|
}
|
|
|
|
declare const __BUILD_TIME__: string;
|
|
declare const __BUILD_VERSION__: string;
|
|
|
|
declare global {
|
|
namespace App {
|
|
interface Platform {}
|
|
}
|
|
|
|
interface Window {
|
|
native_app: any;
|
|
}
|
|
|
|
// eslint-disable-next-line no-var
|
|
var native_app: any;
|
|
}
|
|
|
|
// Stripe Buy Button web component — needed so Svelte templates accept the element without TS errors.
|
|
declare module 'svelte/elements' {
|
|
interface IntrinsicElements {
|
|
'stripe-buy-button': {
|
|
'buy-button-id': string;
|
|
'publishable-key': string;
|
|
'client-reference-id'?: string;
|
|
[attr: string]: any;
|
|
};
|
|
}
|
|
}
|