Files
afilmory/packages/typing/src/manifest.ts
Innei 7e216d90d7 feat: introduce @afilmory/typing package and update imports across the codebase
- 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>
2026-01-10 23:31:41 +08:00

23 lines
699 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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
}