Import cleanups to avoid circular imports.
This commit is contained in:
1 parent
a7cab0ea1a
commit
a5921e9f91
5 files changed
+13
-430
No files matched your search
@@ -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