refactor(types): use generated Document type for doc prop in DocumentEditLayout

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-18 16:18:24 +02:00
parent aff485400d
commit 3f07c4fe58

View File

@@ -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;