| Name | Message | Date |
|---|---|---|
| 📁 assets | 5 hours ago | |
| 📄 birdnet.worker.ts | 3 hours ago | |
| 📄 index.ts | 5 hours ago | |
| 📄 types.ts | 3 hours ago |
📄
src/lib/types.ts
export interface Prediction {
commonName: string;
scientificName: string;
confidence: number;
}
export type WorkerInMessage =
| { type: "init" }
| { type: "analyze"; samples: Float32Array };
export type WorkerOutMessage =
| { type: "ready" }
| { type: "error"; message: string }
| { type: "results"; predictions: Prediction[] };