mirror of
https://github.com/Afilmory/afilmory
synced 2026-04-24 23:05:05 +00:00
- Added a new package `@afilmory/typing` to centralize type definitions. - Updated various files to import types from `@afilmory/typing` instead of individual modules. - Adjusted package dependencies in `package.json` files for affected packages. - Modified `pnpm-lock.yaml` to include the new package and its dependencies. Signed-off-by: Innei <tukon479@gmail.com>
23 lines
699 B
TypeScript
23 lines
699 B
TypeScript
import type { PhotoManifestItem } from './photo'
|
||
|
||
export type ManifestVersion = `v${number}`
|
||
|
||
export interface CameraInfo {
|
||
make: string // e.g., "Canon", "Sony", "Fujifilm"
|
||
model: string // e.g., "EOS R5", "α7R V", "X-T5"
|
||
displayName: string // e.g., "Canon EOS R5"
|
||
}
|
||
|
||
export interface LensInfo {
|
||
make?: string // e.g., "Canon", "Sony", "Sigma" (can be empty)
|
||
model: string // e.g., "RF 24-70mm F2.8 L IS USM"
|
||
displayName: string // e.g., "Canon RF 24-70mm F2.8 L IS USM"
|
||
}
|
||
|
||
export type AfilmoryManifest = {
|
||
version: ManifestVersion
|
||
data: PhotoManifestItem[]
|
||
cameras: CameraInfo[] // Unique cameras found in all photos
|
||
lenses: LensInfo[] // Unique lenses found in all photos
|
||
}
|