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
@@ -6,10 +6,10 @@ import { IntegrityReportType } from 'src/enum';
import { DB } from 'src/schema'; import { DB } from 'src/schema';
import { IntegrityReportTable } from 'src/schema/tables/integrity-report.table'; import { IntegrityReportTable } from 'src/schema/tables/integrity-report.table';
export interface ReportPaginationOptions { export type ReportPaginationOptions = {
cursor?: string; cursor?: string;
limit: number; limit: number;
} };
@Injectable() @Injectable()
export class IntegrityRepository { export class IntegrityRepository {
@@ -5,11 +5,11 @@
import { ContextMenuButton, TableCell, TableRow } from '@immich/ui'; import { ContextMenuButton, TableCell, TableRow } from '@immich/ui';
import { t } from 'svelte-i18n'; import { t } from 'svelte-i18n';
interface Props { type Props = {
id: string; id: string;
path: string; path: string;
reportType: IntegrityReportType; reportType: IntegrityReportType;
} };
let { id, path, reportType }: Props = $props(); let { id, path, reportType }: Props = $props();
let deleting = $state(false); let deleting = $state(false);
@@ -25,9 +25,9 @@
import { t } from 'svelte-i18n'; import { t } from 'svelte-i18n';
import type { PageData } from './$types'; import type { PageData } from './$types';
interface Props { type Props = {
data: PageData; data: PageData;
} };
const { data }: Props = $props(); const { data }: Props = $props();
const { StartMaintenance } = $derived(getMaintenanceAdminActions($t)); const { StartMaintenance } = $derived(getMaintenanceAdminActions($t));
@@ -11,9 +11,9 @@
import { t } from 'svelte-i18n'; import { t } from 'svelte-i18n';
import type { PageData } from './$types'; import type { PageData } from './$types';
interface Props { type Props = {
data: PageData; data: PageData;
} };
let { data }: Props = $props(); let { data }: Props = $props();