diff --git a/src/hooks/useCameraDevices.ts b/src/hooks/useCameraDevices.ts index d440c07..1b6297f 100644 --- a/src/hooks/useCameraDevices.ts +++ b/src/hooks/useCameraDevices.ts @@ -4,7 +4,7 @@ import { sortDevices } from '../utils/FormatFilter'; import { Camera } from '../Camera'; import { CameraDevice, LogicalCameraDeviceType, parsePhysicalDeviceTypes, PhysicalCameraDeviceType } from '../CameraDevice'; -type CameraDevices = { +export type CameraDevices = { [key in CameraPosition]: CameraDevice | undefined; }; const DefaultCameraDevices: CameraDevices = {