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';
|
import type { components } from '$lib/generated/api';
|
||||||
|
|
||||||
type Person = components['schemas']['Person'];
|
type Person = components['schemas']['Person'];
|
||||||
|
type Doc = components['schemas']['Document'];
|
||||||
|
|
||||||
let {
|
let {
|
||||||
doc,
|
doc,
|
||||||
@@ -29,19 +30,7 @@ let {
|
|||||||
topbar,
|
topbar,
|
||||||
actionbar
|
actionbar
|
||||||
}: {
|
}: {
|
||||||
doc: {
|
doc: 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;
|
|
||||||
};
|
|
||||||
formId: string;
|
formId: string;
|
||||||
formAction: string;
|
formAction: string;
|
||||||
formError?: string | null;
|
formError?: string | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user