refactor: prefer type over interface

Signed-off-by: izzy <me@insrt.uk>
This commit is contained in:
izzy
2026-02-11 15:54:06 +00:00
parent 6c38417ebd
commit cc7d8f2335
4 changed files with 8 additions and 8 deletions

View File

@@ -6,10 +6,10 @@ import { IntegrityReportType } from 'src/enum';
import { DB } from 'src/schema';
import { IntegrityReportTable } from 'src/schema/tables/integrity-report.table';
export interface ReportPaginationOptions {
export type ReportPaginationOptions = {
cursor?: string;
limit: number;
}
};
@Injectable()
export class IntegrityRepository {

View File

@@ -5,11 +5,11 @@
import { ContextMenuButton, TableCell, TableRow } from '@immich/ui';
import { t } from 'svelte-i18n';
interface Props {
type Props = {
id: string;
path: string;
reportType: IntegrityReportType;
}
};
let { id, path, reportType }: Props = $props();
let deleting = $state(false);

View File

@@ -25,9 +25,9 @@
import { t } from 'svelte-i18n';
import type { PageData } from './$types';
interface Props {
type Props = {
data: PageData;
}
};
const { data }: Props = $props();
const { StartMaintenance } = $derived(getMaintenanceAdminActions($t));

View File

@@ -11,9 +11,9 @@
import { t } from 'svelte-i18n';
import type { PageData } from './$types';
interface Props {
type Props = {
data: PageData;
}
};
let { data }: Props = $props();