diff --git a/frontend/src/routes/DocumentList.svelte b/frontend/src/routes/DocumentList.svelte index 76f8195a..dad41528 100644 --- a/frontend/src/routes/DocumentList.svelte +++ b/frontend/src/routes/DocumentList.svelte @@ -7,6 +7,8 @@ import type { components } from '$lib/generated/api'; type DocumentSearchItem = components['schemas']['DocumentSearchItem']; +type SortMode = 'DATE' | 'TITLE' | 'SENDER' | 'RECEIVER' | 'UPLOAD_DATE' | 'RELEVANCE'; + let { items, canWrite, @@ -20,7 +22,7 @@ let { error?: string | null; total?: number; q?: string; - sort?: string; + sort?: SortMode; } = $props(); const groups = $derived.by(() => {