generated from google-gemini/aistudio-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtypes.ts
More file actions
29 lines (26 loc) · 730 Bytes
/
types.ts
File metadata and controls
29 lines (26 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
export interface RawMedicineData {
// Trying to accommodate potential variations in the source JSON
[key: string]: any;
}
export interface Medicine {
id: string;
genericName: string; // 通用名
brandName: string; // 商品名
company: string; // 厂家
specification: string; // 规格
category: string; // 治疗类别/分类
tags: string[]; // 标签
registrationNum?: string; // 注册证号
sourceCountry?: string; // 产地/来源
originalData: RawMedicineData; // Keep original just in case
}
export interface SearchState {
query: string;
isAiEnabled: boolean;
isSearching: boolean;
activeTag: string | null;
}
export interface TagStats {
name: string;
count: number;
}