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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user