Files
Greenlens/types.ts
knuthtimo-lab 024eec6686 feat: Initialize GreenLens project with core dependencies and structure
Sets up the project using Vite, React, and TypeScript. Includes initial configuration for Tailwind CSS, Gemini API integration, and local storage management. Defines basic types for plant data and UI elements. The README is updated with local development instructions.
2026-01-28 11:43:24 +01:00

36 lines
697 B
TypeScript

export interface CareInfo {
waterIntervalDays: number;
light: string;
temp: string;
}
export interface Plant {
id: string;
name: string;
botanicalName: string;
imageUri: string;
dateAdded: string; // Serialized Date
careInfo: CareInfo;
lastWatered: string; // Serialized Date
wateringHistory?: string[]; // Array of serialized dates
description?: string;
notificationsEnabled?: boolean;
}
export interface IdentificationResult {
name: string;
botanicalName: string;
confidence: number;
careInfo: CareInfo;
description?: string;
}
export enum Tab {
HOME = 'home',
SEARCH = 'search',
SETTINGS = 'settings',
}
export type Language = 'de' | 'en' | 'es';