Import cleanups to avoid circular imports.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user