Import cleanups to avoid circular imports.

This commit is contained in:
Dermot Duffy
2023-01-29 20:44:08 -08:00
parent a7cab0ea1a
commit a5921e9f91
5 changed files with 13 additions and 430 deletions
+7 -1
View File
@@ -1,4 +1,3 @@
import { RecordingSegment } from '../types';
import { FrigateEvent, FrigateRecording } from './frigate/types';
// ====
@@ -48,6 +47,13 @@ export interface QueryResults {
cached?: boolean;
}
// Generic recording segment type (inspired by Frigate recording segments).
export interface RecordingSegment {
start_time: number;
end_time: number;
id: string;
}
export type QueryReturnType<QT> = QT extends EventQuery
? EventQueryResults
: QT extends RecordingQuery