mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-03 21:03:08 +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;
|
archived: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
// UI-specific: base64-encoded images (not in shared types)
|
// UI-specific: base64-encoded images with required id and size (extends ImageAttachment)
|
||||||
export interface FeatureImage {
|
export interface FeatureImage extends ImageAttachment {
|
||||||
id: string;
|
id: string; // Required (overrides optional in ImageAttachment)
|
||||||
data: string; // base64 encoded
|
size: number; // Required (overrides optional in ImageAttachment)
|
||||||
mimeType: string;
|
|
||||||
filename: string;
|
|
||||||
size: number;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user