mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-30 06:12:03 +00:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user