From a7a5123839099993d3f8a2fdf6d9e2e14911f47b Mon Sep 17 00:00:00 2001 From: Marcel Date: Sat, 18 Apr 2026 16:18:24 +0200 Subject: [PATCH] refactor(types): use generated Document type for doc prop in DocumentEditLayout Co-Authored-By: Claude Sonnet 4.6 --- .../components/document/DocumentEditLayout.svelte | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/frontend/src/lib/components/document/DocumentEditLayout.svelte b/frontend/src/lib/components/document/DocumentEditLayout.svelte index 04bb203c..2e9eb343 100644 --- a/frontend/src/lib/components/document/DocumentEditLayout.svelte +++ b/frontend/src/lib/components/document/DocumentEditLayout.svelte @@ -15,6 +15,7 @@ import type { Tag } from '$lib/components/TagInput.svelte'; import type { components } from '$lib/generated/api'; type Person = components['schemas']['Person']; +type Doc = components['schemas']['Document']; let { doc, @@ -29,19 +30,7 @@ let { topbar, actionbar }: { - doc: { - id: string; - filePath?: string | null; - originalFilename?: string | null; - title?: string | null; - documentDate?: string | null; - location?: string | null; - documentLocation?: string | null; - summary?: string | null; - sender?: { id: string; displayName: string } | null; - receivers?: Person[] | null; - tags?: Tag[] | null; - }; + doc: Doc; formId: string; formAction: string; formError?: string | null;