From c2ff8a849956cad8443c6832241390415542a1d5 Mon Sep 17 00:00:00 2001 From: dkmyta Date: Mon, 23 Sep 2024 15:33:28 -0700 Subject: [PATCH] Update FixerStatus type to account for potential error props --- projects/plugins/protect/src/js/types/fixers.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/projects/plugins/protect/src/js/types/fixers.ts b/projects/plugins/protect/src/js/types/fixers.ts index c732af6311b63..507892abcb45e 100644 --- a/projects/plugins/protect/src/js/types/fixers.ts +++ b/projects/plugins/protect/src/js/types/fixers.ts @@ -2,12 +2,14 @@ export type FixerStatus = 'not_started' | 'in_progress' | 'fixed' | 'not_fixed'; export type FixersStatus = { ok: boolean; - threats: { + error?: string; + threats?: { [ key: number ]: ThreatFixStatus; }; }; export type ThreatFixStatus = { - status: FixerStatus; - last_updated: string; + error?: string; + status?: FixerStatus; + last_updated?: string; };