refactor(types): Make FeatureImage extend ImageAttachment

Address Gemini review feedback - reduce code duplication by having
FeatureImage extend ImageAttachment instead of duplicating properties.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Shirone
2026-01-25 22:32:46 +01:00
parent 38e8a4c4ea
commit f55c985634

View File

@@ -33,11 +33,8 @@ export interface ChatSession {
archived: boolean;
}
// UI-specific: base64-encoded images (not in shared types)
export interface FeatureImage {
id: string;
data: string; // base64 encoded
mimeType: string;
filename: string;
size: number;
// UI-specific: base64-encoded images with required id and size (extends ImageAttachment)
export interface FeatureImage extends ImageAttachment {
id: string; // Required (overrides optional in ImageAttachment)
size: number; // Required (overrides optional in ImageAttachment)
}