| Name | Message | Date |
|---|---|---|
| 📁 assets | 1 month ago | |
| 📄 birdnet.worker.ts | 1 month ago | |
| 📄 history.ts | 1 month ago | |
| 📄 index.ts | 1 month ago | |
| 📄 labels.ts | 1 month ago | |
| 📄 types.ts | 1 month ago |
📄
src/lib/types.ts
export interface BirdLabel {
scientificName: string;
commonName: string;
}
export interface Prediction {
labelIndex: number;
confidence: number;
}
export interface HistoryEntry {
labelIndex: number;
confidence: number;
detectedAt: string; // ISO 8601
}
export type WorkerInMessage =
| { type: "init" }
| { type: "analyze"; samples: Float32Array };
export type WorkerOutMessage =
| { type: "ready" }
| { type: "error"; message: string }
| { type: "results"; predictions: Prediction[] };