mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
42
web/src/app.d.ts
vendored
42
web/src/app.d.ts
vendored
@@ -3,32 +3,32 @@
|
||||
// See https://kit.svelte.dev/docs/types#app
|
||||
// for information about these interfaces
|
||||
declare namespace App {
|
||||
interface Locals {
|
||||
user?: import('@api').UserResponseDto;
|
||||
api: import('@api').ImmichApi;
|
||||
}
|
||||
interface Locals {
|
||||
user?: import('@api').UserResponseDto;
|
||||
api: import('@api').ImmichApi;
|
||||
}
|
||||
|
||||
interface PageData {
|
||||
meta: {
|
||||
title: string;
|
||||
description?: string;
|
||||
imageUrl?: string;
|
||||
};
|
||||
}
|
||||
interface PageData {
|
||||
meta: {
|
||||
title: string;
|
||||
description?: string;
|
||||
imageUrl?: string;
|
||||
};
|
||||
}
|
||||
|
||||
interface Error {
|
||||
message: string;
|
||||
stack?: string;
|
||||
code?: string | number;
|
||||
}
|
||||
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;
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
interface HTMLAttributes<T> {
|
||||
'on:copyImage'?: () => void;
|
||||
'on:zoomImage'?: () => void;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user