Fix TS imports

This commit is contained in:
Marc Rousavy 2021-02-23 08:50:51 +01:00
parent d3c19a4f8c
commit 3e98a7d190
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
import { useEffect, useState } from 'react';
import type { CameraPosition } from 'src/CameraPosition';
import { sortDevices } from 'src/utils/FormatFilter';
import type { CameraPosition } from '../CameraPosition';
import { sortDevices } from '../utils/FormatFilter';
import { Camera } from '../Camera';
import { CameraDevice, LogicalCameraDeviceType, parsePhysicalDeviceTypes, PhysicalCameraDeviceType } from '../CameraDevice';

View File

@ -1,7 +1,7 @@
import { useMemo } from 'react';
import type { CameraDevice, CameraDeviceFormat } from 'src/CameraDevice';
import { filterFormatsByAspectRatio, sortFormatsByResolution } from 'src/utils/FormatFilter';
import type { Size } from 'src/utils/FormatFilter';
import type { CameraDevice, CameraDeviceFormat } from '../CameraDevice';
import { filterFormatsByAspectRatio, sortFormatsByResolution } from '../utils/FormatFilter';
import type { Size } from '../utils/FormatFilter';
/**
* Returns the best format for the given camera device.