mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-07 22:05:44 +03:00
improve types
This commit is contained in:
parent
56281685f9
commit
ce3ff199e9
@ -99,6 +99,11 @@ export type TestResult = {
|
|||||||
error?: string;
|
error?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type CandidateTestMap = Record<
|
||||||
|
string,
|
||||||
|
TestResult | { success: false; error: string }
|
||||||
|
>;
|
||||||
|
|
||||||
export type WizardFormData = {
|
export type WizardFormData = {
|
||||||
cameraName?: string;
|
cameraName?: string;
|
||||||
host?: string;
|
host?: string;
|
||||||
@ -115,7 +120,7 @@ export type WizardFormData = {
|
|||||||
// API Response Types
|
// API Response Types
|
||||||
export type FfprobeResponse = {
|
export type FfprobeResponse = {
|
||||||
return_code: number;
|
return_code: number;
|
||||||
stderr: string;
|
stderr: string | string[];
|
||||||
stdout: FfprobeData | string;
|
stdout: FfprobeData | string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user