mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
34 lines
895 B
TypeScript
34 lines
895 B
TypeScript
/// <reference types="@sveltejs/kit" />
|
|
|
|
// See https://kit.svelte.dev/docs/types#app
|
|
// for information about these interfaces
|
|
declare namespace App {
|
|
interface PageData {
|
|
meta: {
|
|
title: string;
|
|
description?: string;
|
|
imageUrl?: string;
|
|
};
|
|
}
|
|
|
|
interface Error {
|
|
message: string;
|
|
stack?: string;
|
|
code?: string | number;
|
|
}
|
|
}
|
|
|
|
// Source: https://stackoverflow.com/questions/63814432/typescript-typing-of-non-standard-window-event-in-svelte
|
|
// To fix the <svelte:window... in components/asset-viewer/photo-viewer.svelte
|
|
declare namespace svelteHTML {
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
interface HTMLAttributes<T> {
|
|
'on:copyImage'?: () => void;
|
|
'on:zoomImage'?: () => void;
|
|
}
|
|
}
|
|
|
|
declare module '$env/static/public' {
|
|
export const PUBLIC_IMMICH_PAY_HOST: string;
|
|
export const PUBLIC_IMMICH_BUY_HOST: string;
|
|
}
|